]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: make the sysfs mq/ layout reflect current mappings
authorJens Axboe <axboe@fb.com>
Fri, 30 May 2014 14:25:36 +0000 (08:25 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 30 May 2014 14:25:36 +0000 (08:25 -0600)
commit4ec8cc77190f08d3043115f6c34f8d652e480128
tree85857d82abc91996bfdf054774f46e5aa519acec
parent04547915fc6f0d8ad85edbe3b31a78b4ea6ce207
blk-mq: make the sysfs mq/ layout reflect current mappings

Currently blk-mq registers all the hardware queues in sysfs,
regardless of whether it uses them (e.g. they have CPU mappings)
or not. The unused hardware queues lack the cpux/ directories,
and the other sysfs entries (like active, pending, etc) are all
zeroes.

Change this so that sysfs correctly reflects the current mappings
of the hardware queues.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sysfs.c
block/blk-mq.c
block/blk-mq.h
include/linux/blk-mq.h