]> git.baikalelectronics.ru Git - kernel.git/commit
block-mq: fix comments in blk_mq_queue_tag_busy_iter
authoryangerkun <yangerkun@huawei.com>
Sat, 19 Sep 2020 03:54:25 +0000 (11:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 29 Sep 2020 14:11:00 +0000 (08:11 -0600)
commit7a967be456fbe8b1094831dace1384eeb1f7e694
tree67bbb2d9c523f52e45957443fc03e87a05a1927d
parentb6d5539eaa7e1c15f3cf3807377272e845d1a435
block-mq: fix comments in blk_mq_queue_tag_busy_iter

'fa6723618c2f ("blk-mq: sync the update nr_hw_queues with
blk_mq_queue_tag_busy_iter")' introduce a bug what we may sleep between
rcu lock. Then 'cc5fd4a82274 ("blk-mq: Allow blocking queue tag iter
callbacks")' fix it by get request_queue's ref. And '5cd86436a1ce ("block:
Remove the synchronize_rcu() call from __blk_mq_update_nr_hw_queues()")'
remove the synchronize_rcu in __blk_mq_update_nr_hw_queues. We need
update the confused comments in blk_mq_queue_tag_busy_iter.

Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c