diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index a2a44ff8e143..b49999b527ed 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -575,6 +575,7 @@ msleep(ident, mtx, priority, wmesg, timo) * the wrong msleep(). Yuck. */ td->td_flags |= TDF_TIMEOUT; + td->td_state = TDS_SLP; p->p_stats->p_ru.ru_nivcsw++; mi_switch(); }