]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netfs: Fix read-retry for fs with no ->prepare_read()
authorDavid Howells <dhowells@redhat.com>
Tue, 7 Jan 2025 14:43:30 +0000 (14:43 +0000)
committerChristian Brauner <brauner@kernel.org>
Thu, 9 Jan 2025 16:20:04 +0000 (17:20 +0100)
commit904abff4b1b94184aaa0e9f5fce7821f7b5b81a3
treedad39819b434efbd82a3c9801fe5d96d6cb508d2
parent3f6bc9e3ab9b127171d39f9ac6eca1abb693b731
netfs: Fix read-retry for fs with no ->prepare_read()

Fix netfslib's read-retry to only call ->prepare_read() in the backing
filesystem such a function is provided.  We can get to this point if a
there's an active cache as failed reads from the cache need negotiating
with the server instead.

Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/529329.1736261010@warthog.procyon.org.uk
cc: Jeff Layton <jlayton@kernel.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