diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-09-13 17:16:15 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-09-22 16:52:13 +0200 |
commit | 217b613a53d3a430aa2e5d1523819dc271f02ff0 (patch) | |
tree | 0f5fd4caece6578b8981ff613110f75034892498 /drivers/nvme | |
parent | blk-mq: support batched queue_rqs() on shared tags queue (diff) | |
download | linux-217b613a53d3a430aa2e5d1523819dc271f02ff0.tar.xz linux-217b613a53d3a430aa2e5d1523819dc271f02ff0.zip |
blk-mq: update driver tags request table when start request
Now we update driver tags request table in blk_mq_get_driver_tag(),
so the driver that support queue_rqs() have to update that inflight
table by itself.
Move it to blk_mq_start_request(), which is a better place where
we setup the deadline for request timeout check. And it's just
where the request becomes inflight.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230913151616.3164338-5-chengming.zhou@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 347cb5daebc3..60a08dfe8d75 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -924,7 +924,6 @@ static bool nvme_prep_rq_batch(struct nvme_queue *nvmeq, struct request *req) if (unlikely(!nvme_check_ready(&nvmeq->dev->ctrl, req, true))) return false; - req->mq_hctx->tags->rqs[req->tag] = req; return nvme_prep_rq(nvmeq->dev, req) == BLK_STS_OK; } |