diff options
| author | David Howells <dhowells@redhat.com> | 2026-09-30 13:41:58 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-10-06 15:32:40 +0200 |
| commit | 9f8b64f6649fdc5bd1927c0b6cf59ac37b6c76e9 (patch) | |
| tree | 33011ed958aba6e2c20bbc27e4b18e3b0e6514fe /tools/lib/python | |
| parent | 23f8d9936ac95c1833f274ba1b2d3417069cc9e9 (diff) | |
| download | linux-next-9f8b64f6649fdc5bd1927c0b6cf59ac37b6c76e9.tar.gz linux-next-9f8b64f6649fdc5bd1927c0b6cf59ac37b6c76e9.zip | |
cachefiles: Fix unset error when calling netfs_prepare_write_failed()
Fix cachefiles to set subreq->error before calling
netfs_prepare_write_failed() otherwise netfslib will try (and fail) to
retry the subrequest (it shouldn't retry writes to the cache, but rather
abandon them). This causes it to hang waiting for the request to complete.
Reported-by: Marc Dionne <marc.dionne@auristor.com>
Fixes: 1a9fe4b6e787 ("cachefiles: Don't rely on backing fs storage map for most use cases")
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/3227746.1790772118@warthog.procyon.org.uk
Tested-by: Marc Dionne <marc.dionne@auristor.com>
cc: Paulo Alcantara <pc@manguebit.org>
cc: Matthew Wilcox <willy@infradead.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
