summaryrefslogtreecommitdiffstats
path: root/fs/netfs/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2023-10-11 15:34:07 +0100
committerDavid Howells <dhowells@redhat.com>2023-12-24 15:08:52 +0000
commit46ed60dcd4f2c94d27735743ce55cd8d6b93cc1d (patch)
treedf301bcb6bd4bdf33b46ba46499353f83753c4df /fs/netfs/Makefile
parentc1ec4d7c2e13471558cfea302b7583856284f94c (diff)
downloadlinux-46ed60dcd4f2c94d27735743ce55cd8d6b93cc1d.tar.gz
linux-46ed60dcd4f2c94d27735743ce55cd8d6b93cc1d.tar.bz2
linux-46ed60dcd4f2c94d27735743ce55cd8d6b93cc1d.zip
netfs: Implement unbuffered/DIO vs buffered I/O locking
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
Diffstat (limited to 'fs/netfs/Makefile')
-rw-r--r--fs/netfs/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/netfs/Makefile b/fs/netfs/Makefile
index a84fe9bbd3c4..cf3fc847b8ac 100644
--- a/fs/netfs/Makefile
+++ b/fs/netfs/Makefile
@@ -4,6 +4,7 @@ netfs-y := \
buffered_read.o \
io.o \
iterator.o \
+ locking.o \
main.o \
misc.o \
objects.o