block: only allocate/free mq_usage_counter in blk-mq
authorMing Lei <tom.leiming@gmail.com>
Tue, 27 May 2014 15:35:14 +0000 (23:35 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:49 +0000 (12:54 -0600)
commitec74dcbd3ddda7788330f6e061b17e9617417d9e
treee96a6816be68dcc9596a9352365586f20090495f
parentb430e16069c990f3f099f7eb50087a1f92921e53
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>
block/blk-core.c
block/blk-mq.c
block/blk-sysfs.c