aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorLiming Sun <[email protected]>2021-05-08 00:30:12 +0000
committerHans de Goede <[email protected]>2021-05-19 13:24:52 +0000
commit1c0e5701c5e792c090aef0e5b9b8923c334d9324 (patch)
treeda8834c666b89c3898ced373638c25a2dcbf9e4c /net/unix/af_unix.c
parentplatform/surface: dtx: Fix poll function (diff)
downloadkernel-1c0e5701c5e792c090aef0e5b9b8923c334d9324.tar.gz
kernel-1c0e5701c5e792c090aef0e5b9b8923c334d9324.zip
platform/mellanox: mlxbf-tmfifo: Fix a memory barrier issue
The virtio framework uses wmb() when updating avail->idx. It guarantees the write order, but not necessarily loading order for the code accessing the memory. This commit adds a load barrier after reading the avail->idx to make sure all the data in the descriptor is visible. It also adds a barrier when returning the packet to virtio framework to make sure read/writes are visible to the virtio code. Fixes: 1357dfd7261f ("platform/mellanox: Add TmFifo driver for Mellanox BlueField Soc") Signed-off-by: Liming Sun <[email protected]> Reviewed-by: Vadim Pasternak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions