]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: get rid of the dead flush handle code path
authorYufen Yu <yuyufen@huawei.com>
Fri, 9 Oct 2020 03:26:33 +0000 (23:26 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Oct 2020 18:35:39 +0000 (12:35 -0600)
commitb2778c50fcbd67cc00edf14ba2fc6f009d964e59
tree0a5e0f4255a52e681d3137353bf14c01b79950db
parentb2835fd8778dee86c4d9a269975826b8297ca767
blk-mq: get rid of the dead flush handle code path

After commit 52e20fd51888 ("blk-mq: don't allocate driver tag upfront
for flush rq"), blk_mq_submit_bio() will call blk_insert_flush()
directly to handle flush request rather than blk_mq_sched_insert_request()
in the case of elevator.

Then, all flush request either have set RQF_FLUSH_SEQ flag when call
blk_mq_sched_insert_request(), or have inserted into hctx->dispatch.
So, remove the dead code path.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c