summaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2014-05-27 23:35:14 +0800
committerJens Axboe <axboe@fb.com>2014-05-27 09:37:08 -0600
commit3d2936f457a847d9d88a9cc127e0eb7a0ebba0ff (patch)
tree575a307f9715ee60ab45dbe31b677c644975f7ad /block/blk-sysfs.c
parent624dbe47541643b72868a59b2c0059bb53dc923f (diff)
downloadtalos-obmc-linux-3d2936f457a847d9d88a9cc127e0eb7a0ebba0ff.tar.gz
talos-obmc-linux-3d2936f457a847d9d88a9cc127e0eb7a0ebba0ff.zip
block: only allocate/free mq_usage_counter in blk-mq
The percpu counter is only used for blk-mq, so move its allocation and free inside blk-mq, and don't allocate it for legacy queue device. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r--block/blk-sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 4d6811ac13fd..23321fbab293 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -517,8 +517,6 @@ static void blk_release_queue(struct kobject *kobj)
if (q->queue_tags)
__blk_queue_free_tags(q);
- percpu_counter_destroy(&q->mq_usage_counter);
-
if (q->mq_ops)
blk_mq_free_queue(q);
OpenPOWER on IntegriCloud