Drop Giant before calling kthread_exit().
This commit is contained in:
parent
5b525a3230
commit
01660e7bc2
@ -276,6 +276,7 @@ finish:
|
|||||||
/* Someone may be waiting for the last nfsiod to terminate. */
|
/* Someone may be waiting for the last nfsiod to terminate. */
|
||||||
if (--nfs_numasync == 0)
|
if (--nfs_numasync == 0)
|
||||||
wakeup(&nfs_numasync);
|
wakeup(&nfs_numasync);
|
||||||
|
mtx_unlock(&Giant);
|
||||||
if ((error == 0) || (error == EWOULDBLOCK))
|
if ((error == 0) || (error == EWOULDBLOCK))
|
||||||
kthread_exit(0);
|
kthread_exit(0);
|
||||||
/* Abnormal termination */
|
/* Abnormal termination */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user