]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfs: Fix barriering when walking subrequest list
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Jul 2026 08:23:02 +0000 (09:23 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 3 Jul 2026 09:52:41 +0000 (11:52 +0200)
commit5c6ce05e406520290c1d89da97fb3cd70c09137d
treea8d156448b9d572cd8f6b031b4b1a54c47bfd317
parent24dddc384fb9aec2d7eea5463ca6dac98a3b3854
netfs: Fix barriering when walking subrequest list

Fix the barriering used when walking the subrequest list in retry as
there's a possibility of seeing a subreq that's just been added by the
application thread.

Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Fixes: 288ace2f57c9 ("netfs: New writeback implementation")
Link: https://sashiko.dev/#/patchset/20260608145432.681865-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/138807.1782980582@warthog.procyon.org.uk
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
cc: Paulo Alcantara <pc@manguebit.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/netfs/read_retry.c
fs/netfs/write_retry.c