Skip to content

Commit 26a42b6

Browse files
Christoph Hellwigaxboe
authored andcommitted
blk-mq: fix the blk_mq_add_to_requeue_list call in blk_kick_flush
Commit b12e5c6 accidentally changes blk_kick_flush to do a head insert into the requeue list, fix this up. Fixes: b12e5c6 ("blk-mq: pass a flags argument to blk_mq_add_to_requeue_list") Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e53413f commit 26a42b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk-flush.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static void blk_kick_flush(struct request_queue *q, struct blk_flush_queue *fq,
346346
smp_wmb();
347347
req_ref_set(flush_rq, 1);
348348

349-
blk_mq_add_to_requeue_list(flush_rq, BLK_MQ_INSERT_AT_HEAD);
349+
blk_mq_add_to_requeue_list(flush_rq, 0);
350350
blk_mq_kick_requeue_list(q);
351351
}
352352

0 commit comments

Comments
 (0)