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)
commit477e19dedc9d3e1f4443a1d4ae00572a988120ea
tree9fe6efa021b26fbf3a4866ca82aa4b63d7029d5d
parent2d29c9f89fcd9bf408fcdaaf515c90a169f22ecd
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