From: Jens Axboe Date: Wed, 7 Dec 2016 22:53:18 +0000 (-0700) Subject: blk-flush: run the queue when inserting blk-mq flush X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c8e52ba5e2d6df5acaaeedda20d74f4ec3adcc82;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Hannes Reinecke --- diff --git a/block/blk-flush.c b/block/blk-flush.c index 1bdbb3d3e5f5..27a42dab5a36 100644 --- a/block/blk-flush.c +++ b/block/blk-flush.c @@ -426,7 +426,7 @@ void blk_insert_flush(struct request *rq) if ((policy & REQ_FSEQ_DATA) && !(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) { if (q->mq_ops) { - blk_mq_insert_request(rq, false, false, true); + blk_mq_insert_request(rq, false, true, false); } else list_add_tail(&rq->queuelist, &q->queue_head); return;