summaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorMing Lei2014-09-25 17:23:44 +0200
committerJens Axboe2014-09-25 23:22:41 +0200
commitba483388e3058b3e412632a84e6bf1f134beaf3d (patch)
treefc54df315e58958208359bd995fdb6df5115dcb2 /block/blk-core.c
parentblock: introduce blk_flush_queue to drive flush machinery (diff)
downloadkernel-qcow2-linux-ba483388e3058b3e412632a84e6bf1f134beaf3d.tar.gz
kernel-qcow2-linux-ba483388e3058b3e412632a84e6bf1f134beaf3d.tar.xz
kernel-qcow2-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-core.c')
-rw-r--r--block/blk-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index cfaca8ca6cc4..dba0a8350807 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -704,7 +704,8 @@ blk_init_allocated_queue(struct request_queue *q, request_fn_proc *rfn,
if (!q)
return NULL;
- if (blk_init_flush(q))
+ q->fq = blk_alloc_flush_queue(q);
+ if (!q->fq)
return NULL;
if (blk_init_rl(&q->root_rl, q, GFP_KERNEL))
@@ -740,7 +741,7 @@ blk_init_allocated_queue(struct request_queue *q, request_fn_proc *rfn,
return q;
fail:
- blk_exit_flush(q);
+ blk_free_flush_queue(q->fq);
return NULL;
}
EXPORT_SYMBOL(blk_init_allocated_queue);