diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2023-09-13 15:16:15 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-09-22 08:52:13 -0600 |
commit | 217b613a53d3a430aa2e5d1523819dc271f02ff0 (patch) | |
tree | 0f5fd4caece6578b8981ff613110f75034892498 /block/blk-mq.h | |
parent | 434097ee375fff36bc5037524609ffd6199f11da (diff) | |
download | linux-217b613a53d3a430aa2e5d1523819dc271f02ff0.tar.gz linux-217b613a53d3a430aa2e5d1523819dc271f02ff0.tar.bz2 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 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index 560a76df290a..f75a9ecfebde 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -351,12 +351,9 @@ bool __blk_mq_alloc_driver_tag(struct request *rq); static inline bool blk_mq_get_driver_tag(struct request *rq) { - struct blk_mq_hw_ctx *hctx = rq->mq_hctx; - if (rq->tag == BLK_MQ_NO_TAG && !__blk_mq_alloc_driver_tag(rq)) return false; - hctx->tags->rqs[rq->tag] = rq; return true; } |