Commit a90ac7b
nvmet-fc: use RCU list iterator for assoc_list
The assoc_list is a RCU protected list, thus use the RCU flavor of list
functions.
Let's use this opportunity and refactor this code and move the lookup
into a helper and give it a descriptive name.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>1 parent fe506a7 commit a90ac7b
1 file changed
Lines changed: 22 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1117 | 1130 | | |
1118 | 1131 | | |
1119 | 1132 | | |
1120 | | - | |
| 1133 | + | |
1121 | 1134 | | |
| 1135 | + | |
1122 | 1136 | | |
1123 | 1137 | | |
1124 | | - | |
1125 | 1138 | | |
1126 | 1139 | | |
1127 | 1140 | | |
| |||
1145 | 1158 | | |
1146 | 1159 | | |
1147 | 1160 | | |
1148 | | - | |
| 1161 | + | |
| 1162 | + | |
1149 | 1163 | | |
1150 | 1164 | | |
1151 | 1165 | | |
1152 | 1166 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
| 1167 | + | |
| 1168 | + | |
1161 | 1169 | | |
1162 | 1170 | | |
| 1171 | + | |
1163 | 1172 | | |
| 1173 | + | |
1164 | 1174 | | |
1165 | | - | |
| 1175 | + | |
1166 | 1176 | | |
1167 | 1177 | | |
1168 | 1178 | | |
| |||
0 commit comments