Drop Giant before calling kthread_exit().

This commit is contained in:
John Baldwin 2005-02-07 18:21:50 +00:00
parent 5b525a3230
commit 01660e7bc2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141465

View File

@ -276,6 +276,7 @@ nfssvc_iod(void *instance)
/* 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 */