mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
70b3ea056f
commit
c8e52ba5e2
@ -426,7 +426,7 @@ void blk_insert_flush(struct request *rq)
|
|||||||
if ((policy & REQ_FSEQ_DATA) &&
|
if ((policy & REQ_FSEQ_DATA) &&
|
||||||
!(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
|
!(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
|
||||||
if (q->mq_ops) {
|
if (q->mq_ops) {
|
||||||
blk_mq_insert_request(rq, false, false, true);
|
blk_mq_insert_request(rq, false, true, false);
|
||||||
} else
|
} else
|
||||||
list_add_tail(&rq->queuelist, &q->queue_head);
|
list_add_tail(&rq->queuelist, &q->queue_head);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user