aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsserver/nfs.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-08-01 16:27:14 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-08-01 16:27:14 +0000
commit6cba7f3609eb90e3240054473bb00f85e6756860 (patch)
tree37dd7fcc8f2e00c87c785f35c3c31843f7eb1b29 /sys/nfsserver/nfs.h
parentbe698f1e7fc1966386de70e43ae21bf7870632d2 (diff)
downloadsrc-6cba7f3609eb90e3240054473bb00f85e6756860.tar.gz
src-6cba7f3609eb90e3240054473bb00f85e6756860.zip
- Add a new function nfsrv_destroycache() to tear down the server request
cache when unloading the nfsserver module. This fixes a memory leak and a stale pointer. - Use callout_drain() rather than callout_stop() when unloading the nfsserver module. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=160881
Diffstat (limited to 'sys/nfsserver/nfs.h')
-rw-r--r--sys/nfsserver/nfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h
index 809df66c156b..c3b231a3ff26 100644
--- a/sys/nfsserver/nfs.h
+++ b/sys/nfsserver/nfs.h
@@ -337,6 +337,7 @@ int nfs_namei(struct nameidata *, fhandle_t *, int,
void nfsm_adj(struct mbuf *, int, int);
int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *);
void nfsrv_initcache(void);
+void nfsrv_destroycache(void);
void nfsrv_timer(void *);
int nfsrv_dorec(struct nfssvc_sock *, struct nfsd *,
struct nfsrv_descript **);