summaryrefslogtreecommitdiff
path: root/fs/netfs/locking.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-24netfs: Implement unbuffered/DIO vs buffered I/O lockingDavid Howells1-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