diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-09-12 01:39:40 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2002-09-12 01:39:40 -0700 |
| commit | f96e7cb1d1e2b1e40dc38d71cfcdf1a7ac606944 (patch) | |
| tree | bb8a5b67aea7ccc01a5ed28cf876679bac5c30ee /include | |
| parent | 0ec2ca3880caee8d795a9e4429801eebb744c4f8 (diff) | |
[PATCH] kNFSd 2: Lockd to shutdown without engaging with nfsd
Currently, when lockd wants to invalidate all it's
clients, it asks nfsd to iterate through them. Now
it iterates itself.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/lockd/bind.h | 1 | ||||
| -rw-r--r-- | include/linux/lockd/lockd.h | 3 | ||||
| -rw-r--r-- | include/linux/nfsd/export.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h index 40dd93194089..e40554349b2a 100644 --- a/include/linux/lockd/bind.h +++ b/include/linux/lockd/bind.h @@ -26,7 +26,6 @@ struct nlmsvc_binding { struct nfs_fh *, struct file *); void (*fclose)(struct file *); - void (*detach)(void); }; extern struct nlmsvc_binding * nlmsvc_ops; diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index caa826a929e4..dbf013c3d890 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h @@ -150,6 +150,8 @@ void nlm_rebind_host(struct nlm_host *); struct nlm_host * nlm_get_host(struct nlm_host *); void nlm_release_host(struct nlm_host *); void nlm_shutdown_hosts(void); +extern struct nlm_host *nlm_find_client(void); + /* * Server-side lock handling @@ -173,6 +175,7 @@ u32 nlm_lookup_file(struct svc_rqst *, struct nlm_file **, void nlm_release_file(struct nlm_file *); void nlmsvc_mark_resources(void); void nlmsvc_free_host_resources(struct nlm_host *); +void nlmsvc_invalidate_all(void); static __inline__ struct inode * nlmsvc_file_inode(struct nlm_file *file) diff --git a/include/linux/nfsd/export.h b/include/linux/nfsd/export.h index 9de10bf92e32..a5c23140778b 100644 --- a/include/linux/nfsd/export.h +++ b/include/linux/nfsd/export.h @@ -102,7 +102,6 @@ struct svc_export * exp_get_by_name(struct svc_client *clp, int exp_rootfh(struct svc_client *, char *path, struct knfsd_fh *, int maxsize); int nfserrno(int errno); -void exp_nlmdetach(void); #endif /* __KERNEL__ */ |
