mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Really, smb_iod_main() is not totally MPSAFE, so just acquire and drop
Giant around it in order to assume MPSAFETY. Reported by: jhb, rwatson Pointy hat to: attilio
This commit is contained in:
parent
2c2f4a605d
commit
e15e150d76
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177654
|
@ -652,6 +652,8 @@ smb_iod_thread(void *arg)
|
|||
{
|
||||
struct smbiod *iod = arg;
|
||||
|
||||
mtx_lock(&Giant);
|
||||
|
||||
/*
|
||||
* Here we assume that the thread structure will be the same
|
||||
* for an entire kthread (kproc, to be more precise) life.
|
||||
|
@ -665,6 +667,7 @@ smb_iod_thread(void *arg)
|
|||
break;
|
||||
tsleep(&iod->iod_flags, PWAIT, "90idle", iod->iod_sleeptimo);
|
||||
}
|
||||
mtx_unlock(&Giant);
|
||||
kproc_exit(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue