diff options
| author | David Howells <dhowells@redhat.com> | 2026-05-12 13:34:00 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-12 14:42:32 +0200 |
| commit | 9871938f99cc6cb266a77265491660e2375271f5 (patch) | |
| tree | 1edd8ee1aa299d43a401a0c2b8552551d21053a7 /include/linux/comedi | |
| parent | ded0c6f1606061148c202825f7e53d711f9f84cf (diff) | |
netfs, afs: Fix write skipping in dir/link writepages
Fix netfs_write_single() and afs_single_writepages() to better handle a
write that would be skipped due to lock contention and WB_SYNC_NONE by
returning 1 from netfs_write_single() if it skipped and making
afs_single_writepages() skip also. If a skip occurs, the inode must be
re-marked as the VFS may have cleared the mark.
This is really only theoretical for directories in netfs_write_single() as
the only path to that is through afs_single_writepages() that takes the
->validate_lock around it, thereby serialising it.
Fixes: 6dd80936618c ("afs: Use netfslib for directories")
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260512123404.719402-24-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/comedi')
0 files changed, 0 insertions, 0 deletions
