File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
drivers/net/ethernet/mellanox/mlx5/core/en Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -176,29 +176,27 @@ static int mlx5e_tx_reporter_ptpsq_unhealthy_recover(void *ctx)
176
176
177
177
priv = ptpsq -> txqsq .priv ;
178
178
179
+ rtnl_lock ();
179
180
mutex_lock (& priv -> state_lock );
180
181
chs = & priv -> channels ;
181
182
netdev = priv -> netdev ;
182
183
183
184
carrier_ok = netif_carrier_ok (netdev );
184
185
netif_carrier_off (netdev );
185
186
186
- rtnl_lock ();
187
187
mlx5e_deactivate_priv_channels (priv );
188
- rtnl_unlock ();
189
188
190
189
mlx5e_ptp_close (chs -> ptp );
191
190
err = mlx5e_ptp_open (priv , & chs -> params , chs -> c [0 ]-> lag_port , & chs -> ptp );
192
191
193
- rtnl_lock ();
194
192
mlx5e_activate_priv_channels (priv );
195
- rtnl_unlock ();
196
193
197
194
/* return carrier back if needed */
198
195
if (carrier_ok )
199
196
netif_carrier_on (netdev );
200
197
201
198
mutex_unlock (& priv -> state_lock );
199
+ rtnl_unlock ();
202
200
203
201
return err ;
204
202
}
You can’t perform that action at this time.
0 commit comments