]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfs: Fix missing locking around retry adding new subreqs
authorDavid Howells <dhowells@redhat.com>
Tue, 12 May 2026 12:33:39 +0000 (13:33 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 12 May 2026 12:42:29 +0000 (14:42 +0200)
commitcce18c263e9623872327ba3c956012f73c1179cc
treecb03bd174a8ff7040d470e08bdb446b881d6b709
parent6f0f7ac1915abc0d202f0eb4b003a6548a5ba60d
netfs: Fix missing locking around retry adding new subreqs

Fix netfs_retry_read_subrequests() and netfs_retry_write_stream() to take
the appropriate lock when adding extra subrequests into
stream->subrequests.

Fixes: e2d46f2ec332 ("netfs: Change the read result collector to only use one work item")
Fixes: 288ace2f57c9 ("netfs: New writeback implementation")
Closes: https://sashiko.dev/#/patchset/20260425125426.3855807-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260512123404.719402-3-dhowells@redhat.com
cc: Paulo Alcantara <pc@manguebit.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/netfs/read_retry.c
fs/netfs/write_retry.c