summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-02-23 03:42:17 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-02-23 03:42:17 +0000
commit18512cf2d80fe44e56a75f0fb04562e969a38a6f (patch)
treead31efb0374778d166d8958c22e0b6c59a531a73 /sys
parente29c8e080b595587aafe2e1d02c5eb9f9f322a51 (diff)
downloadFreeBSD-src-18512cf2d80fe44e56a75f0fb04562e969a38a6f.zip
FreeBSD-src-18512cf2d80fe44e56a75f0fb04562e969a38a6f.tar.gz
Move comments to more accurate place.
Diffstat (limited to 'sys')
-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 c269806..47d9a36 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))
OpenPOWER on IntegriCloud