diff options
-rw-r--r-- | drivers/block/nvme-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index c7ea07ce9372..bcbdf832b1b0 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c | |||
@@ -640,8 +640,6 @@ static int nvme_queue_rq(struct blk_mq_hw_ctx *hctx, | |||
640 | iod->private = req; | 640 | iod->private = req; |
641 | req->special = iod; | 641 | req->special = iod; |
642 | 642 | ||
643 | nvme_set_info(cmd, iod, req_completion); | ||
644 | |||
645 | if (req->cmd_flags & REQ_DISCARD) { | 643 | if (req->cmd_flags & REQ_DISCARD) { |
646 | void *range; | 644 | void *range; |
647 | /* | 645 | /* |
@@ -677,6 +675,7 @@ static int nvme_queue_rq(struct blk_mq_hw_ctx *hctx, | |||
677 | blk_mq_start_request(req); | 675 | blk_mq_start_request(req); |
678 | 676 | ||
679 | submit_iod: | 677 | submit_iod: |
678 | nvme_set_info(cmd, iod, req_completion); | ||
680 | spin_lock_irq(&nvmeq->q_lock); | 679 | spin_lock_irq(&nvmeq->q_lock); |
681 | if (req->cmd_flags & REQ_DISCARD) | 680 | if (req->cmd_flags & REQ_DISCARD) |
682 | nvme_submit_discard(nvmeq, ns, req, iod); | 681 | nvme_submit_discard(nvmeq, ns, req, iod); |