summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
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 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