Remove TD_ON_RUNQ() from a check to make sure Giant is not held when
calling mi_switch(). The kernel would panic on an earlier KASSERT() in mi_switch() if TD_ON_RUNQ() was true.
This commit is contained in:
parent
86e87d5e2d
commit
828797f029
@ -467,9 +467,7 @@ mi_switch(void)
|
||||
p = td->td_proc; /* XXX */
|
||||
KASSERT(!TD_ON_RUNQ(td), ("mi_switch: called by old code"));
|
||||
#ifdef INVARIANTS
|
||||
if (!TD_ON_LOCK(td) &&
|
||||
!TD_ON_RUNQ(td) &&
|
||||
!TD_IS_RUNNING(td))
|
||||
if (!TD_ON_LOCK(td) && !TD_IS_RUNNING(td))
|
||||
mtx_assert(&Giant, MA_NOTOWNED);
|
||||
#endif
|
||||
KASSERT(td->td_critnest == 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user