lockd: unlock lockd locks held for a certain filesystem
authorWendy Cheng <wcheng@redhat.com>
Thu, 17 Jan 2008 16:10:12 +0000 (11:10 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 25 Apr 2008 17:00:11 +0000 (13:00 -0400)
commit17efa372cfe4d189705edf6cd4fbe283827a5dc7
treedcf10b96b079fff6edebbf451a32608ce6032663
parent4373ea84c84d8a96e99d3da99e813d3e36d1bd11
lockd: unlock lockd locks held for a certain filesystem

Add /proc/fs/nfsd/unlock_filesystem, which allows e.g.:

shell> echo /mnt/sfs1 > /proc/fs/nfsd/unlock_filesystem

so that a filesystem can be unmounted before allowing a peer nfsd to
take over nfs service for the filesystem.

Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Cc: Lon Hohberger <lhh@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
 fs/lockd/svcsubs.c          |   66 +++++++++++++++++++++++++++++++++++++++-----
 fs/nfsd/nfsctl.c            |   65 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/lockd/lockd.h |    7 ++++
 3 files changed, 131 insertions(+), 7 deletions(-)
fs/lockd/svcsubs.c
fs/nfsd/nfsctl.c
include/linux/lockd/lockd.h