mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
8021q: publish vlan_devices_arrays entries with acquire/release
Replace the smp_wmb()/smp_rmb() barrier pair with smp_store_release()/smp_load_acquire() on vg->vlan_devices_arrays[pidx][vidx]. vlan_group_prealloc_vid() publishes the array pointer via release; __vlan_group_get_device() acquires it before accessing the array, ensuring the allocated entries are visible. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
2e9ff7bb66
commit
d199b0d0bb
2 changed files with 5 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue