commit | 477e19dedc9d3e1f4443a1d4ae00572a988120ea | [log] [tgz] |
---|---|---|
author | Jianchao Wang <jianchao.w.wang@oracle.com> | Fri Oct 12 18:07:25 2018 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Oct 13 15:41:59 2018 -0600 |
tree | 9fe6efa021b26fbf3a4866ca82aa4b63d7029d5d | |
parent | 2d29c9f89fcd9bf408fcdaaf515c90a169f22ecd [diff] |
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>