J. Bruce Fields wrote:
From: Marc Eshel <eshel@xxxxxxxxxxxxxxx>
There is currently a filesystem ->lock() method, but it is defined only by
a few filesystems that are not exported via nfsd. So none of the lock
routines that are used by lockd or nfsv4 bother to call those methods.
Filesystems such as cluster filesystems would like to do their own locking
and also would like to be exportable via NFS.
So we add a new lock() export operation, and new routines vfs_lock_file,
vfs_test_lock, and vfs_cancel_lock, which call the new export operation,
falling back on the appropriate local operation if the export operation is
unavailable.
These new functions are intended to be used by lockd and nfsd; lockd and
nfsd changes to take advantage of them are made by later patches.
Starting to read these patches .. I see these new APIs are placed in
lockd directory. Was there any discussion before to make these generic
vfs layer functions ? I'm just curious.
-- Wendy
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html