From 6eeb364b4cbe1ea7934492957145447d79dd9cca Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Thu, 19 Jul 2007 08:49:16 +0000 Subject: [PATCH] - Calling sched_nice() in tdsigwakeup() is no longer required by ULE and actually causes LORs and other panics. Reported by: mlaier Approved by: re --- sys/kern/kern_sig.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index c473418ca403..e4a60e7a855a 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2365,12 +2365,8 @@ tdsigwakeup(struct thread *td, int sig, sig_t action, int intrval) * Bring the priority of a thread up if we want it to get * killed in this lifetime. */ - if (action == SIG_DFL && (prop & SA_KILL)) { - if (p->p_nice > 0) - sched_nice(td->td_proc, 0); - if (td->td_priority > PUSER) - sched_prio(td, PUSER); - } + if (action == SIG_DFL && (prop & SA_KILL) && td->td_priority > PUSER) + sched_prio(td, PUSER); if (TD_ON_SLEEPQ(td)) { /*