summaryrefslogtreecommitdiffstats
path: root/fs/netfs/locking.c
Commit message (Collapse)AuthorAgeFilesLines
* netfs: Implement unbuffered/DIO vs buffered I/O lockingDavid Howells2023-12-241-0/+216
Borrow NFS's direct-vs-buffered I/O locking into netfslib. Similar code is also used in ceph. Modify it to have the correct checker annotations for i_rwsem lock acquisition/release and to return -ERESTARTSYS if waits are interrupted. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org