mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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