diff options
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r-- | sys/kern/sched_4bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index c1a1c6b..02c8f3c 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -794,6 +794,8 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) * added to the run queue and selected. */ if (newtd) { + KASSERT((newtd->td_inhibitors == 0), + ("trying to run inhibitted thread")); newtd->td_ksegrp->kg_avail_opennings--; newtd->td_kse->ke_flags |= KEF_DIDRUN; TD_SET_RUNNING(newtd); |