diff options
author | Wendy Cheng <wcheng@redhat.com> | 2008-01-17 11:10:12 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-25 13:00:11 -0400 |
commit | 17efa372cfe4d189705edf6cd4fbe283827a5dc7 (patch) | |
tree | dcf10b96b079fff6edebbf451a32608ce6032663 /include/linux/lockd | |
parent | 4373ea84c84d8a96e99d3da99e813d3e36d1bd11 (diff) |
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(-)
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index bcb93fc1fce7..102d928f7206 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -223,6 +223,7 @@ void nlmsvc_invalidate_all(void); | |||
223 | /* | 223 | /* |
224 | * Cluster failover support | 224 | * Cluster failover support |
225 | */ | 225 | */ |
226 | int nlmsvc_unlock_all_by_sb(struct super_block *sb); | ||
226 | int nlmsvc_unlock_all_by_ip(__be32 server_addr); | 227 | int nlmsvc_unlock_all_by_ip(__be32 server_addr); |
227 | 228 | ||
228 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) | 229 | static inline struct inode *nlmsvc_file_inode(struct nlm_file *file) |