diff options
author | Christoph Hellwig <hch@lst.de> | 2023-05-19 06:40:46 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-05-19 19:52:29 -0600 |
commit | 360f264834e34d08530c2fb9b67e3ffa65318761 (patch) | |
tree | cc9a3f142802d97d9598aa8b531d7ed07f682311 /block/blk-mq.h | |
parent | c1075e548ce6e6b5c7b71f2b05d344164ebc52bb (diff) | |
download | linux-360f264834e34d08530c2fb9b67e3ffa65318761.tar.gz linux-360f264834e34d08530c2fb9b67e3ffa65318761.tar.bz2 linux-360f264834e34d08530c2fb9b67e3ffa65318761.zip |
blk-mq: defer to the normal submission path for non-flush flush commands
If blk_insert_flush decides that a command does not need to use the
flush state machine, return false and let blk_mq_submit_bio handle
it the normal way (including using an I/O scheduler) instead of doing
a bypass insert.
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/20230519044050.107790-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index d15981db34b9..ec7d2fb0b3c8 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -64,10 +64,6 @@ struct blk_mq_tags *blk_mq_alloc_map_and_rqs(struct blk_mq_tag_set *set, void blk_mq_free_map_and_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags, unsigned int hctx_idx); -/* - * Internal helpers for request insertion into sw queues - */ -void blk_mq_request_bypass_insert(struct request *rq, blk_insert_t flags); /* * CPU -> queue mappings |