Commit 9c71c83c authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

blk-flush: don't run queue for requests bypassing flush

blk_insert_flush() should only insert request since run queue always
follows it.

In case of bypassing flush, we don't need to run queue because every
blk_insert_flush() follows one run queue.

Signed-off-by: default avatarMing Lei <>
Signed-off-by: default avatarJens Axboe <>
parent 6d6f167c
......@@ -463,7 +463,7 @@ void blk_insert_flush(struct request *rq)
if ((policy & REQ_FSEQ_DATA) &&
if (q->mq_ops)
blk_mq_sched_insert_request(rq, false, true, false, false);
blk_mq_sched_insert_request(rq, false, false, false, false);
list_add_tail(&rq->queuelist, &q->queue_head);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment