diff options
author | Ming Lei <tom.leiming@gmail.com> | 2013-12-26 08:31:38 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-12-31 11:53:05 -0500 |
commit | 3edcc0ce85c59d45d6dfc6a36a6b3f8b31ba9887 (patch) | |
tree | 9650f658c3bedc97636830d643c09d324225c0f8 /block | |
parent | f04c1fe7619b2a60ee9e209cf3f9fcba2ce8f2a2 (diff) |
block: blk-mq: don't export blk_mq_free_queue()
blk_mq_free_queue() is called from release handler of
queue kobject, so it needn't be called from drivers.
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 1 | ||||
-rw-r--r-- | block/blk-mq.h | 1 | ||||
-rw-r--r-- | block/blk-sysfs.c | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index edbd2536f942..6914f9bd470a 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -1461,7 +1461,6 @@ void blk_mq_free_queue(struct request_queue *q) | |||
1461 | list_del_init(&q->all_q_node); | 1461 | list_del_init(&q->all_q_node); |
1462 | mutex_unlock(&all_q_mutex); | 1462 | mutex_unlock(&all_q_mutex); |
1463 | } | 1463 | } |
1464 | EXPORT_SYMBOL(blk_mq_free_queue); | ||
1465 | 1464 | ||
1466 | /* Basically redo blk_mq_init_queue with queue frozen */ | 1465 | /* Basically redo blk_mq_init_queue with queue frozen */ |
1467 | static void blk_mq_queue_reinit(struct request_queue *q) | 1466 | static void blk_mq_queue_reinit(struct request_queue *q) |
diff --git a/block/blk-mq.h b/block/blk-mq.h index caa614f24409..e151a2f4f171 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h | |||
@@ -28,6 +28,7 @@ void blk_mq_run_request(struct request *rq, bool run_queue, bool async); | |||
28 | void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async); | 28 | void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async); |
29 | void blk_mq_init_flush(struct request_queue *q); | 29 | void blk_mq_init_flush(struct request_queue *q); |
30 | void blk_mq_drain_queue(struct request_queue *q); | 30 | void blk_mq_drain_queue(struct request_queue *q); |
31 | void blk_mq_free_queue(struct request_queue *q); | ||
31 | 32 | ||
32 | /* | 33 | /* |
33 | * CPU hotplug helpers | 34 | * CPU hotplug helpers |
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 97779522472f..8095c4a21fc0 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #include "blk.h" | 12 | #include "blk.h" |
13 | #include "blk-cgroup.h" | 13 | #include "blk-cgroup.h" |
14 | #include "blk-mq.h" | ||
14 | 15 | ||
15 | struct queue_sysfs_entry { | 16 | struct queue_sysfs_entry { |
16 | struct attribute attr; | 17 | struct attribute attr; |