summaryrefslogtreecommitdiff
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-02-23 03:42:17 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-02-23 03:42:17 +0000
commitdc94f5e3837e4083d6723669f6e7fba49654da07 (patch)
treead31efb0374778d166d8958c22e0b6c59a531a73 /sys/kern/subr_sleepqueue.c
parentc008d51784fcf687ead08c048dc807ad09e5ee3c (diff)
Notes
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
-rw-r--r--sys/kern/subr_sleepqueue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index c269806adc5e..47d9a369e2d0 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -403,12 +403,12 @@ sleepq_catch_signals(void *wchan)
MPASS(ret == EINTR || ret == ERESTART);
} else {
PROC_UNLOCK(p);
- /*
- * If there were pending signals and this thread is still
- * on the sleep queue, remove it from the sleep queue.
- */
mtx_lock_spin(&sc->sc_lock);
}
+ /*
+ * There were pending signals and this thread is still
+ * on the sleep queue, remove it from the sleep queue.
+ */
sq = sleepq_lookup(wchan);
mtx_lock_spin(&sched_lock);
if (TD_ON_SLEEPQ(td))