]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Make it safe to use RCU to iterate over blk_mq_tag_set.tag_list
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 7 Apr 2017 18:16:49 +0000 (11:16 -0700)
committerJens Axboe <axboe@fb.com>
Fri, 7 Apr 2017 18:45:47 +0000 (12:45 -0600)
commit1dd26d7eb6ba584371cfa9670d24e0d5b901d82d
treefdc8eae0529160e721890e586080ae4d40163d7a
parent062b3365ce442fdf6fa30d004f8e047bd578990c
blk-mq: Make it safe to use RCU to iterate over blk_mq_tag_set.tag_list

Since the next patch in this series will use RCU to iterate over
tag_list, make this safe. Add lockdep_assert_held() statements
in functions that iterate over tag_list to make clear that using
list_for_each_entry() instead of list_for_each_entry_rcu() is
fine in these functions.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c