]> git.baikalelectronics.ru Git - kernel.git/commit
locks: allow {vfs,posix}_lock_file to return conflicting lock
authorMarc Eshel <eshel@almaden.ibm.com>
Thu, 18 Jan 2007 21:15:35 +0000 (16:15 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 6 May 2007 23:23:24 +0000 (19:23 -0400)
commit1dd78c36e7e99d9cae20add926080be614911c00
tree91599ec9b759f7e3c5defcb8dd361acd7288154c
parent9f03134fcfe1e3d429348be695cb7195d74d9146
locks: allow {vfs,posix}_lock_file to return conflicting lock

The nfsv4 protocol's lock operation, in the case of a conflict, returns
information about the conflicting lock.

It's unclear how clients can use this, so for now we're not going so far as to
add a filesystem method that can return a conflicting lock, but we may as well
return something in the local case when it's easy to.

Signed-off-by: Marc Eshel <eshel@almaden.ibm.com>
Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
fs/lockd/svclock.c
fs/lockd/svcsubs.c
fs/locks.c
fs/nfsd/nfs4state.c
include/linux/fs.h