diff options
author | Ming Lei <ming.lei@canonical.com> | 2014-09-25 11:23:40 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-25 17:22:35 -0400 |
commit | f355265571440a7db16e784b6edf4e7d26971a03 (patch) | |
tree | 79b20c37c734b5932dcecc9e85850847b0a69855 /block/blk-sysfs.c | |
parent | 1bcb1eada4f11a713cbe586d1b5a5d93a48277cb (diff) |
block: introduce blk_init_flush and its pair
These two temporary functions are introduced for holding flush
initialization and de-initialization, so that we can
introduce 'flush queue' easier in the following patch. And
once 'flush queue' and its allocation/free functions are ready,
they will be removed for sake of code readability.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 17f5c84ce7bf..949075952119 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -517,11 +517,11 @@ static void blk_release_queue(struct kobject *kobj) | |||
517 | if (q->queue_tags) | 517 | if (q->queue_tags) |
518 | __blk_queue_free_tags(q); | 518 | __blk_queue_free_tags(q); |
519 | 519 | ||
520 | blk_exit_flush(q); | ||
521 | |||
520 | if (q->mq_ops) | 522 | if (q->mq_ops) |
521 | blk_mq_free_queue(q); | 523 | blk_mq_free_queue(q); |
522 | 524 | ||
523 | kfree(q->flush_rq); | ||
524 | |||
525 | blk_trace_shutdown(q); | 525 | blk_trace_shutdown(q); |
526 | 526 | ||
527 | bdi_destroy(&q->backing_dev_info); | 527 | bdi_destroy(&q->backing_dev_info); |