Unverified Commit 7ab021d4 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11598 net/mlx5e: Take state lock during tx timeout reporter

parents 7eee9210 caccf4c3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -149,7 +149,9 @@ static int mlx5e_tx_reporter_timeout_recover(void *ctx)
		return err;
	}

	mutex_lock(&priv->state_lock);
	err = mlx5e_safe_reopen_channels(priv);
	mutex_unlock(&priv->state_lock);
	if (!err) {
		to_ctx->status = 1; /* all channels recovered */
		return err;