diff options
author | Ming Lei <ming.lei@canonical.com> | 2014-09-25 17:23:44 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-25 23:22:41 +0200 |
commit | ba483388e3058b3e412632a84e6bf1f134beaf3d (patch) | |
tree | fc54df315e58958208359bd995fdb6df5115dcb2 /block/blk-mq.c | |
parent | block: introduce blk_flush_queue to drive flush machinery (diff) | |
download | linux-ba483388e3058b3e412632a84e6bf1f134beaf3d.tar.xz linux-ba483388e3058b3e412632a84e6bf1f134beaf3d.zip |
block: remove blk_init_flush() and its pair
Now mission of the two helpers is over, and just call
blk_alloc_flush_queue() and blk_free_flush_queue() directly.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index d39e8a5eaeaa..59ca79634cb9 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1861,7 +1861,8 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set) blk_mq_add_queue_tag_set(set, q); - if (blk_init_flush(q)) + q->fq = blk_alloc_flush_queue(q); + if (!q->fq) goto err_hw_queues; blk_mq_map_swqueue(q); |