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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Ming Lei 2014-09-25 23:23:44 +08:00 • committed by Jens Axboe
commit ba483388e3
5 changed files with 10 additions and 23 deletions

View file

@ -517,7 +517,7 @@ static void blk_release_queue(struct kobject *kobj)
if (q->queue_tags)
__blk_queue_free_tags(q);
blk_exit_flush(q);
blk_free_flush_queue(q->fq);
if (q->mq_ops)
blk_mq_free_queue(q);