blk-mq: run dispatch lock once in case of issuing from list
authorMing Lei <ming.lei@redhat.com>
Fri, 3 Dec 2021 13:15:34 +0000 (21:15 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Dec 2021 21:51:29 +0000 (14:51 -0700)
commit4cafe86c9267f9dd5819df946ba8c038ba958370
treed5c2871f88972a6f2a893a4add72818d9ea9110c
parentbcc330f42f442a98d61f153d16c0b6487461ee81
blk-mq: run dispatch lock once in case of issuing from list

It isn't necessary to call blk_mq_run_dispatch_ops() once for issuing
single request directly, and enough to do it one time when issuing from
whole list.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211203131534.3668411-5-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq.c