ib_smc_update() potentially updates the Infiniband port state, and so should almost always be followed by a call to ib_link_state_changed(). The one exception is the call made to ib_smc_update() before the device is registered. Fix by removing explicit calls to ib_link_state_changed() from drivers using ib_smc_update(), including a call to ib_link_state_changed() within ib_smc_update(), and creating a separate ib_smc_init() for use prior to device registration. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
||
1436 | 1436 |
|
1437 | 1437 |
|
1438 | 1438 |
|
1439 |
|
|
1440 |
|
|
1441 |
|
|
1442 | 1439 |
|
1443 | 1440 |
|
1444 | 1441 |
|
|
||
2169 | 2166 |
|
2170 | 2167 |
|
2171 | 2168 |
|
2172 |
|
|
2169 |
|
|
2173 | 2170 |
|
2174 |
|
|
2171 |
|
|
2175 | 2172 |
|
2176 | 2173 |
|
2177 | 2174 |
|
|
||
1821 | 1821 |
|
1822 | 1822 |
|
1823 | 1823 |
|
1824 |
|
|
1825 |
|
|
1826 |
|
|
1827 | 1824 |
|
1828 | 1825 |
|
1829 | 1826 |
|
|
||
2826 | 2823 |
|
2827 | 2824 |
|
2828 | 2825 |
|
2829 |
|
|
2830 |
|
|
2831 |
|
|
2832 |
|
|
2826 |
|
|
2827 |
|
|
2828 |
|
|
2833 | 2829 |
|
2834 | 2830 |
|
2835 | 2831 |
|
|
||
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 |
|
|
18 |
|
|
17 |
|
|
18 |
|
|
19 | 19 |
|
20 | 20 |
|
|
||
123 | 123 |
|
124 | 124 |
|
125 | 125 |
|
126 |
|
|
126 |
|
|
127 | 127 |
|
128 | 128 |
|
129 | 129 |
|
130 | 130 |
|
131 | 131 |
|
132 |
|
|
132 |
|
|
133 | 133 |
|
134 | 134 |
|
135 | 135 |
|
|
||
174 | 174 |
|
175 | 175 |
|
176 | 176 |
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|