mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| mlxbf-bootctl.c | ||
| mlxbf-bootctl.h | ||
| mlxbf-pmc.c | ||
| mlxbf-tmfifo-regs.h | ||
| mlxbf-tmfifo.c | ||
| mlxreg-hotplug.c | ||
| mlxreg-io.c | ||