From 5da2b58aeb4d5bc16b135ed4bea93e94dd900422 Mon Sep 17 00:00:00 2001 From: David Xu Date: Thu, 3 Oct 2002 01:22:05 +0000 Subject: [PATCH] set ke_bound to NULL when kse owner thread becomes runnable. Reviewed by: julian (mentor) --- sys/kern/kern_switch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index c6c667d0f4a..b4b8879aa1b 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -359,6 +359,7 @@ setrunqueue(struct thread *td) KASSERT((td->td_kse != NULL), ("queueing BAD thread to run queue")); ke = td->td_kse; + ke->ke_bound = NULL; if (ke->ke_flags & KEF_ONLOANQ) { ke->ke_flags &= ~KEF_ONLOANQ; TAILQ_REMOVE(&kg->kg_lq, ke, ke_kgrlist);