summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_kse.c2
-rw-r--r--sys/kern/kern_thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index cb46e9d..037266a 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -643,7 +643,7 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
if (ku) {
if ((td2 = ku->ku_owner) == NULL) {
panic("%s: no owner", __func__);
- } else if (TD_ON_SLEEPQ(td2) &&
+ } else if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) &&
((td2->td_wchan == &kg->kg_completed) ||
(td2->td_wchan == &p->p_siglist &&
(ku->ku_mflags & KMF_WAITSIGEVENT)))) {
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index cb46e9d..037266a 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -643,7 +643,7 @@ kse_wakeup(struct thread *td, struct kse_wakeup_args *uap)
if (ku) {
if ((td2 = ku->ku_owner) == NULL) {
panic("%s: no owner", __func__);
- } else if (TD_ON_SLEEPQ(td2) &&
+ } else if (TD_ON_SLEEPQ(td2) && (td2->td_flags & TDF_SINTR) &&
((td2->td_wchan == &kg->kg_completed) ||
(td2->td_wchan == &p->p_siglist &&
(ku->ku_mflags & KMF_WAITSIGEVENT)))) {
OpenPOWER on IntegriCloud