]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: simplify blk_mq_hw_sysfs_cpus_show()
authorJens Axboe <axboe@fb.com>
Wed, 9 Apr 2014 16:53:21 +0000 (10:53 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 9 Apr 2014 16:53:21 +0000 (10:53 -0600)
commite45e7af7f5cef81d7bfa2514e54a6ee0ca2aa217
tree478ee0ca7f83132a68f0cd7b1d7f68e7df14450d
parentd123f450e3f7b1e8a843e60969948d8b3582dd99
blk-mq: simplify blk_mq_hw_sysfs_cpus_show()

Now that we have a cpu mask of CPUs that are mapped to
a specific hardware queue, we can just iterate that to
display the sysfs num-hw-queue/cpu_list file.

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