On 4/30/24 04:50, Michael S. Tsirkin wrote:
On Mon, Apr 29, 2024 at 08:13:56PM +1000, Gavin Shan wrote:
This is suggested by Michael S. Tsirkin according to [1] and the goal
is to apply smp_rmb() inside vhost_get_avail_idx() if needed. With it,
the caller of the function needn't to worry about memory barriers. Since
we're here, other cleanups are also applied.
[1] https://lore.kernel.org/virtualization/20240327155750-mutt-send-email-mst@xxxxxxxxxx/
Patch 1 makes some sense, gave some comments. Rest I think we should
just drop.
Sure, v3 has been sent with PATCH[v2 2/3/4] dropped. Please take a look
when you getting a chance.
v3: https://lore.kernel.org/virtualization/20240429232748.642356-1-gshan@xxxxxxxxxx/T/#u
Thanks,
Gavin