diff options
author | Maxim Mikityanskiy <maximmi@nvidia.com> | 2022-01-25 13:52:56 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-02-15 09:30:51 +0300 |
commit | ed5f9cf06b20f74c1098d6d62313e3e9af217fcb (patch) | |
tree | 9fe9d102be4c69cc895d7c93ef513ac02007b86a /drivers/i3c/device.c | |
parent | 62f7991feab69ed398ad6a03b911fa0ee0549516 (diff) | |
download | linux-ed5f9cf06b20f74c1098d6d62313e3e9af217fcb.tar.xz |
net/mlx5e: Use READ_ONCE/WRITE_ONCE for DCBX trust state
trust_state can be written while mlx5e_select_queue() is reading it. To
avoid inconsistencies, use READ_ONCE and WRITE_ONCE for access and
updates, and touch the variable only once per operation.
Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/i3c/device.c')
0 files changed, 0 insertions, 0 deletions