summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_nfsiod.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-02-07 18:21:50 +0000
committerjhb <jhb@FreeBSD.org>2005-02-07 18:21:50 +0000
commit685dd13b54edac88c20ac81591b99b1af9111e06 (patch)
tree4de219942a269303751923d07b97b8657e881119 /sys/nfsclient/nfs_nfsiod.c
parentdbd1fe81388fce650208148a08d68217bd661021 (diff)
downloadFreeBSD-src-685dd13b54edac88c20ac81591b99b1af9111e06.zip
FreeBSD-src-685dd13b54edac88c20ac81591b99b1af9111e06.tar.gz
Drop Giant before calling kthread_exit().
Diffstat (limited to 'sys/nfsclient/nfs_nfsiod.c')
-rw-r--r--sys/nfsclient/nfs_nfsiod.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_nfsiod.c b/sys/nfsclient/nfs_nfsiod.c
index b25d99c..8740fb8 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 */
OpenPOWER on IntegriCloud