linux/net/9p
Gui-Dong Han aa88278693 9p: Add missing read barrier in virtio zero-copy path
Commit 2b6e72ed74 ("9P: Add memory barriers to protect request
fields over cb/rpc threads handoff") added a read barrier after
p9_client_rpc() waits for req->status, pairing with the write barrier in
p9_client_cb(). The virtio zero-copy wait path was missed.

Add the same read barrier after the zero-copy wait before reading the
completed request.

Fixes: 2b6e72ed74 ("9P: Add memory barriers to protect request fields over cb/rpc threads handoff")
Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com>
Message-ID: <20260529075441.233369-1-hanguidong02@gmail.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
2026-06-21 05:22:57 +00:00
..
client.c 9p: avoid putting oldfid in p9_client_walk() error path 2026-06-21 05:22:56 +00:00
error.c
Kconfig
Makefile
mod.c
protocol.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
protocol.h
trans_common.c
trans_common.h
trans_fd.c net/9p: Replace strlen() strcpy() pair with strscpy() 2026-06-21 05:22:57 +00:00
trans_rdma.c net/9p: fix race condition on rdma->state in trans_rdma.c 2026-06-21 05:22:57 +00:00
trans_usbg.c net/9p/usbg: Constify struct configfs_item_operations 2026-05-19 11:55:53 +00:00
trans_virtio.c 9p: Add missing read barrier in virtio zero-copy path 2026-06-21 05:22:57 +00:00
trans_xen.c 9p/trans_xen: replace simple_strto* with kstrtouint 2026-04-16 02:57:01 +00:00