From 01660e7bc20856b535cf3f8cd45576e367b878a5 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 7 Feb 2005 18:21:50 +0000 Subject: [PATCH] Drop Giant before calling kthread_exit(). --- sys/nfsclient/nfs_nfsiod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c index b25d99ce7019..8740fb8048f7 100644 --- a/sys/nfsclient/nfs_nfsiod.c +++ b/sys/nfsclient/nfs_nfsiod.c @@ -276,6 +276,7 @@ finish: /* Someone may be waiting for the last nfsiod to terminate. */ if (--nfs_numasync == 0) wakeup(&nfs_numasync); + mtx_unlock(&Giant); if ((error == 0) || (error == EWOULDBLOCK)) kthread_exit(0); /* Abnormal termination */