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 9p: Use hashtable.h for hash_errmap 2025-03-23 06:20:48 +09:00
Kconfig net/9p/usbg: allow building as standalone module 2024-11-22 23:48:14 +09:00
Makefile net/9p/usbg: Add new usb gadget function transport 2024-09-03 09:57:08 +02:00
mod.c 9p: convert to the new mount API 2025-11-03 16:49:53 +09:00
protocol.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
protocol.h net/9p: add p9_msg_buf_size() 2022-10-05 07:05:41 +09:00
trans_common.c 9p: fix file headers 2021-11-03 17:45:04 +09:00
trans_common.h 9p: fix a bunch of checkpatch warnings 2021-11-04 21:04:25 +09:00
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