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:
Attilio Rao 2008-03-27 01:23:59 +00:00
parent 2c2f4a605d
commit e15e150d76
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177654

View File

@ -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);
}