File tree 1 file changed +4
-1
lines changed
drivers/net/ethernet/mellanox/mlx5/core
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ int mlx5_fw_reset_set_live_patch(struct mlx5_core_dev *dev)
145
145
static void mlx5_fw_reset_complete_reload (struct mlx5_core_dev * dev )
146
146
{
147
147
struct mlx5_fw_reset * fw_reset = dev -> priv .fw_reset ;
148
+ struct devlink * devlink = priv_to_devlink (dev );
148
149
149
150
/* if this is the driver that initiated the fw reset, devlink completed the reload */
150
151
if (test_bit (MLX5_FW_RESET_FLAGS_PENDING_COMP , & fw_reset -> reset_flags )) {
@@ -155,9 +156,11 @@ static void mlx5_fw_reset_complete_reload(struct mlx5_core_dev *dev)
155
156
mlx5_core_err (dev , "reset reload flow aborted, PCI reads still not working\n" );
156
157
else
157
158
mlx5_load_one (dev , true);
158
- devlink_remote_reload_actions_performed (priv_to_devlink (dev ), 0 ,
159
+ devl_lock (devlink );
160
+ devlink_remote_reload_actions_performed (devlink , 0 ,
159
161
BIT (DEVLINK_RELOAD_ACTION_DRIVER_REINIT ) |
160
162
BIT (DEVLINK_RELOAD_ACTION_FW_ACTIVATE ));
163
+ devl_unlock (devlink );
161
164
}
162
165
}
163
166
You can’t perform that action at this time.
0 commit comments