Commit 705cda9
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>1 parent d945a36 commit 705cda9
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2111 | 2111 | | |
2112 | 2112 | | |
2113 | 2113 | | |
| 2114 | + | |
| 2115 | + | |
2114 | 2116 | | |
2115 | 2117 | | |
2116 | 2118 | | |
| |||
2123 | 2125 | | |
2124 | 2126 | | |
2125 | 2127 | | |
2126 | | - | |
| 2128 | + | |
| 2129 | + | |
2127 | 2130 | | |
2128 | 2131 | | |
2129 | 2132 | | |
2130 | 2133 | | |
2131 | 2134 | | |
2132 | 2135 | | |
2133 | 2136 | | |
| 2137 | + | |
| 2138 | + | |
2134 | 2139 | | |
2135 | 2140 | | |
2136 | 2141 | | |
| |||
2148 | 2153 | | |
2149 | 2154 | | |
2150 | 2155 | | |
2151 | | - | |
| 2156 | + | |
2152 | 2157 | | |
2153 | 2158 | | |
2154 | 2159 | | |
| |||
2639 | 2644 | | |
2640 | 2645 | | |
2641 | 2646 | | |
| 2647 | + | |
| 2648 | + | |
2642 | 2649 | | |
2643 | 2650 | | |
2644 | 2651 | | |
| |||
0 commit comments