From 3adc4cd6e25dab239f15b3fe6de3b46000bb7a2d Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 7 Sep 1998 05:42:15 +0000 Subject: Made unloading of the nfs LKM sort of work. This is mainly to test detachment of vfs sysctls. Unloading of vfs LKMs doesn't actually work for any vfs, since it leaves garbage pointers to memory allocation control structures. --- sys/nfsclient/nfs_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/nfsclient/nfs_socket.c') diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index 693899f..7b54d9e 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_socket.c 8.5 (Berkeley) 3/30/95 - * $Id: nfs_socket.c,v 1.43 1998/08/01 09:04:02 peter Exp $ + * $Id: nfs_socket.c,v 1.44 1998/08/23 03:07:16 wollman Exp $ */ /* @@ -133,6 +133,7 @@ static int proct[NFS_NPROCS] = { static int nfs_backoff[8] = { 2, 4, 8, 16, 32, 64, 128, 256, }; int nfsrtton = 0; struct nfsrtt nfsrtt; +struct callout_handle nfs_timer_handle; static int nfs_msg __P((struct proc *,char *,char *)); static int nfs_rcvlock __P((struct nfsreq *)); @@ -1464,7 +1465,7 @@ nfs_timer(arg) } #endif /* NFS_NOSERVER */ splx(s); - timeout(nfs_timer, (void *)0, nfs_ticks); + nfs_timer_handle = timeout(nfs_timer, (void *)0, nfs_ticks); } -- cgit v1.1