OSDN Git Service

blk-mq: move more logic into blk_mq_insert_requests
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Apr 2023 06:40:41 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:52:29 +0000 (06:52 -0600)
commit94aa228c2a2f6edc8e9b7c4745942ea4c5978977
treef668b0a3abcaa3af5745ec83dbd968e5b31a51b9
parent90110e04f265b95f59fbae09c228c5920b8a302f
blk-mq: move more logic into blk_mq_insert_requests

Move all logic related to the direct insert (including the call to
blk_mq_run_hw_queue) into blk_mq_insert_requests to streamline the code
flow up a bit, and to allow marking blk_mq_try_issue_list_directly
static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230413064057.707578-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq.c
block/blk-mq.h