Skip to content

Commit c8e52ba

Browse files
committed
blk-flush: run the queue when inserting blk-mq flush
Currently we pass in to run the queue async, but don't flag the queue to be run. We don't need to run it async here, but we should run it. So fixup the parameters. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Hannes Reinecke <hare@suse.com>
1 parent 70b3ea0 commit c8e52ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-flush.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ void blk_insert_flush(struct request *rq)
426426
if ((policy & REQ_FSEQ_DATA) &&
427427
!(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
428428
if (q->mq_ops) {
429-
blk_mq_insert_request(rq, false, false, true);
429+
blk_mq_insert_request(rq, false, true, false);
430430
} else
431431
list_add_tail(&rq->queuelist, &q->queue_head);
432432
return;

0 commit comments

Comments
 (0)