Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1510546 > unrolled thread

[PATCH 7/7] lightnvm: rrpc: split bios of size > 256kb

Started by"Javier González" <jg@lightnvm.io>
First post2016-10-27 20:10 +0200
Last post2016-10-27 20:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 7/7] lightnvm: rrpc: split bios of size > 256kb "Javier González" <jg@lightnvm.io> - 2016-10-27 20:10 +0200

#1510546 — [PATCH 7/7] lightnvm: rrpc: split bios of size > 256kb

From"Javier González" <jg@lightnvm.io>
Date2016-10-27 20:10 +0200
Subject[PATCH 7/7] lightnvm: rrpc: split bios of size > 256kb
Message-ID<swXhM-5la-27@gated-at.bofh.it>
rrpc cannot handle bios of size > 256kb due to NVMe using a 64 bit
bitmap to signal I/O completion. If a larger bio comes, split it
explicitly.

Signed-off-by: Javier González <javier@cnexlabs.com>
---
 drivers/lightnvm/rrpc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c
index 8deef2e..0b8251f 100644
--- a/drivers/lightnvm/rrpc.c
+++ b/drivers/lightnvm/rrpc.c
@@ -984,6 +984,12 @@ static blk_qc_t rrpc_make_rq(struct request_queue *q, struct bio *bio)
 	struct nvm_rq *rqd;
 	int err;
 
+	/*
+	 * Multipage is supported up until 256kb due to NVME's 64 bit completion
+	 * bitmap.
+	 */
+	blk_queue_split(q, &bio, q->bio_split);
+
 	if (bio_op(bio) == REQ_OP_DISCARD) {
 		rrpc_discard(rrpc, bio);
 		return BLK_QC_T_NONE;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web