diff options
author | Jens Axboe <axboe@fb.com> | 2017-01-27 03:00:47 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-27 11:03:14 -0500 |
commit | bd6737f1ae92e2f1c6e8362efe96dbe7f18fa07d (patch) | |
tree | ffed03cc3bd01143a8e43d6daca2288836a4a9e3 /block/blk-exec.c | |
parent | f73f44eb00cb136990cfb7d40e436c13d7669ec8 (diff) |
blk-mq-sched: add flush insertion into blk_mq_sched_insert_request()
Instead of letting the caller check this and handle the details
of inserting a flush request, put the logic in the scheduler
insertion function. This fixes direct flush insertion outside
of the usual make_request_fn calls, like from dm via
blk_insert_cloned_request().
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-exec.c')
-rw-r--r-- | block/blk-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-exec.c b/block/blk-exec.c index 86656fdfa637..ed1f10165268 100644 --- a/block/blk-exec.c +++ b/block/blk-exec.c | |||
@@ -66,7 +66,7 @@ void blk_execute_rq_nowait(struct request_queue *q, struct gendisk *bd_disk, | |||
66 | * be reused after dying flag is set | 66 | * be reused after dying flag is set |
67 | */ | 67 | */ |
68 | if (q->mq_ops) { | 68 | if (q->mq_ops) { |
69 | blk_mq_sched_insert_request(rq, at_head, true, false); | 69 | blk_mq_sched_insert_request(rq, at_head, true, false, false); |
70 | return; | 70 | return; |
71 | } | 71 | } |
72 | 72 | ||