Assert that Giant is not owned during the main loop of ithd_loop().
This commit is contained in:
parent
59f857e4ea
commit
7c06c69188
@ -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) {
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user