From f96e7cb1d1e2b1e40dc38d71cfcdf1a7ac606944 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 12 Sep 2002 01:39:40 -0700 Subject: [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. --- include/linux/lockd/bind.h | 1 - include/linux/lockd/lockd.h | 3 +++ include/linux/nfsd/export.h | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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__ */ -- cgit v1.2.3