mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
1c0e5701c5
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 |