mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
lightnvm: rrpc: split bios of size > 256kb
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> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
402ab9a89d
commit
f0b01b6a61
1 changed files with 2 additions and 0 deletions
|
@ -943,6 +943,8 @@ static blk_qc_t rrpc_make_rq(struct request_queue *q, struct bio *bio)
|
||||||
struct nvm_rq *rqd;
|
struct nvm_rq *rqd;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
blk_queue_split(q, &bio, q->bio_split);
|
||||||
|
|
||||||
if (bio_op(bio) == REQ_OP_DISCARD) {
|
if (bio_op(bio) == REQ_OP_DISCARD) {
|
||||||
rrpc_discard(rrpc, bio);
|
rrpc_discard(rrpc, bio);
|
||||||
return BLK_QC_T_NONE;
|
return BLK_QC_T_NONE;
|
||||||
|
|
Loading…
Reference in a new issue