diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-30 08:25:36 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-30 08:25:36 -0600 |
commit | 67aec14ce87fe25bdfff7dbf468556333df11c4e (patch) | |
tree | 85857d82abc91996bfdf054774f46e5aa519acec /block/blk-mq.h | |
parent | 2230237500821aedfcf2bba2a79d9cbca389233c (diff) |
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>
Diffstat (limited to 'block/blk-mq.h')
-rw-r--r-- | block/blk-mq.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h index ff5e6bf0f69..de7b3bbd5bd 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -55,6 +55,12 @@ extern int blk_mq_update_queue_map(unsigned int *map, unsigned int nr_queues); extern int blk_mq_hw_queue_to_node(unsigned int *map, unsigned int); /* + * sysfs helpers + */ +extern int blk_mq_sysfs_register(struct request_queue *q); +extern void blk_mq_sysfs_unregister(struct request_queue *q); + +/* * Basic implementation of sparser bitmap, allowing the user to spread * the bits over more cachelines. */ |