]> git.baikalelectronics.ru Git - kernel.git/commit
block: Use non _rcu version of list functions for tag_set_list
authorDaniel Wagner <dwagner@suse.de>
Tue, 28 Jul 2020 13:29:51 +0000 (15:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jul 2020 15:37:09 +0000 (09:37 -0600)
commitd47c372aaccb01a6941d508c9a6f9768e0c12a16
tree8ed4f010c4352c514d3deff6462b8d7a2423d587
parent4d018b7c51aae0bb0da95853383b02b08675f99b
block: Use non _rcu version of list functions for tag_set_list

tag_set_list is only accessed under the tag_set_lock lock. There is
no need for using the _rcu list functions.

The _rcu list function were introduced to allow read access to the
tag_set_list protected under RCU, see f38b9523ec73 ("blk-mq: Make it
safe to use RCU to iterate over blk_mq_tag_set.tag_list") and
3ab451193c07 ("Revert "blk-mq: don't handle TAG_SHARED in restart"").
Those changes got reverted later but the cleanup commit missed a
couple of places to undo the changes.

Fixes: 06391e05d8c2 ("blk-mq: remove synchronize_rcu() from blk_mq_del_queue_tag_set()"
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c