blk-mq: do not do head insertions post-pre-flush commands
authorChristoph Hellwig <hch@lst.de>
Fri, 19 May 2023 04:40:49 +0000 (06:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:52:29 +0000 (19:52 -0600)
commit1e82fadfc6b96ca79f69d0bcf938d31032bb43d2
tree5f26eefdc90001bd959e8a0edfbf1f4cafb04b16
parent615939a2ae734e3e68c816d6749d1f5f79c62ab7
blk-mq: do not do head insertions post-pre-flush commands

blk_flush_complete_seq currently queues requests that write data after
a pre-flush from the flush state machine at the head of the queue.
This doesn't really make sense, as the original request bypassed all
queue lists by directly diverting to blk_insert_flush from
blk_mq_submit_bio.

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-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c