]> Git Repo - linux.git/commitdiff
blk-mq: do not do head insertions post-pre-flush commands
authorChristoph Hellwig <[email protected]>
Fri, 19 May 2023 04:40:49 +0000 (06:40 +0200)
committerJens Axboe <[email protected]>
Sat, 20 May 2023 01:52:29 +0000 (19:52 -0600)
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 <[email protected]>
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/blk-flush.c

index 7121f9ad0762f831b6030717c89e8a7a6d5b3ddd..f407a59503173df69c3f16c2c4c38ed4ef578e0b 100644 (file)
@@ -188,7 +188,7 @@ static void blk_flush_complete_seq(struct request *rq,
 
        case REQ_FSEQ_DATA:
                list_move_tail(&rq->flush.list, &fq->flush_data_in_flight);
-               blk_mq_add_to_requeue_list(rq, BLK_MQ_INSERT_AT_HEAD);
+               blk_mq_add_to_requeue_list(rq, 0);
                blk_mq_kick_requeue_list(q);
                break;
 
This page took 0.055271 seconds and 4 git commands to generate.