diff options
-rw-r--r-- | drivers/block/nvme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 240922706a93..562d75a0fc50 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -529,6 +529,8 @@ static int nvme_submit_bio_queue(struct nvme_queue *nvmeq, struct nvme_ns *ns, | |||
529 | cmnd->rw.control = cpu_to_le16(control); | 529 | cmnd->rw.control = cpu_to_le16(control); |
530 | cmnd->rw.dsmgmt = cpu_to_le32(dsmgmt); | 530 | cmnd->rw.dsmgmt = cpu_to_le32(dsmgmt); |
531 | 531 | ||
532 | bio->bi_sector += length >> 9; | ||
533 | |||
532 | if (++nvmeq->sq_tail == nvmeq->q_depth) | 534 | if (++nvmeq->sq_tail == nvmeq->q_depth) |
533 | nvmeq->sq_tail = 0; | 535 | nvmeq->sq_tail = 0; |
534 | writel(nvmeq->sq_tail, nvmeq->q_db); | 536 | writel(nvmeq->sq_tail, nvmeq->q_db); |