Assert that Giant is not owned during the main loop of ithd_loop().

This commit is contained in:
John Baldwin 2000-11-15 22:03:26 +00:00
parent 59f857e4ea
commit 7c06c69188
2 changed files with 2 additions and 0 deletions

View File

@ -220,6 +220,7 @@ ithd_loop(void *dummy)
* lock. This may take a while and it_need may get
* set again, so we have to check it again.
*/
mtx_assert(&Giant, MA_NOTOWNED);
mtx_enter(&sched_lock, MTX_SPIN);
if (!me->it_need) {

View File

@ -220,6 +220,7 @@ ithd_loop(void *dummy)
* lock. This may take a while and it_need may get
* set again, so we have to check it again.
*/
mtx_assert(&Giant, MA_NOTOWNED);
mtx_enter(&sched_lock, MTX_SPIN);
if (!me->it_need) {