svn commit: r337106 - stable/11/sys/dev/mlx5/mlx5_en
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Aug 2 08:45:33 UTC 2018
Author: hselasky
Date: Thu Aug 2 08:45:32 2018
New Revision: 337106
URL: https://svnweb.freebsd.org/changeset/base/337106
Log:
MFC r336401:
Correctly write atomic variable in mlx5en(4).
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Thu Aug 2 08:44:40 2018 (r337105)
+++ stable/11/sys/dev/mlx5/mlx5_en/mlx5_en_main.c Thu Aug 2 08:45:32 2018 (r337106)
@@ -1232,7 +1232,7 @@ mlx5e_open_sq(struct mlx5e_channel *c,
if (err)
goto err_disable_sq;
- atomic_store_rel_int(&sq->queue_state, MLX5E_SQ_READY);
+ WRITE_ONCE(sq->queue_state, MLX5E_SQ_READY);
return (0);
More information about the svn-src-stable-11
mailing list