]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: adjust debugfs and sysfs register when updating nr_hw_queues
authorJianchao Wang <jianchao.w.wang@oracle.com>
Fri, 12 Oct 2018 10:07:25 +0000 (18:07 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Oct 2018 21:41:59 +0000 (15:41 -0600)
commit45f88657b4afc021dc8d760142b775fc553bede0
tree9fe6efa021b26fbf3a4866ca82aa4b63d7029d5d
parentc51d8e9db7ff8eea84735f35e61dd528fbcddd1e
blk-mq: adjust debugfs and sysfs register when updating nr_hw_queues

blk-mq debugfs and sysfs entries need to be removed before updating
queue map, otherwise, we get get wrong result there. This patch fixes
it and remove the redundant debugfs and sysfs register/unregister
operations during __blk_mq_update_nr_hw_queues.

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c