Drop Giant before calling kthread_exit().
This commit is contained in:
parent
5b525a3230
commit
01660e7bc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141465
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user