summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2007-07-19 08:49:16 +0000
committerjeff <jeff@FreeBSD.org>2007-07-19 08:49:16 +0000
commit1961c471a32e25d393be4d99b9c507f884b9c483 (patch)
tree644f97eb982b23af9ac970ccbc4077b3a0dd8c7a /sys/kern/kern_sig.c
parent761a54a5a63517b1ed0dbd37a512d922965883b9 (diff)
downloadFreeBSD-src-1961c471a32e25d393be4d99b9c507f884b9c483.zip
FreeBSD-src-1961c471a32e25d393be4d99b9c507f884b9c483.tar.gz
- Calling sched_nice() in tdsigwakeup() is no longer required by ULE and
actually causes LORs and other panics. Reported by: mlaier Approved by: re
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index c473418..e4a60e7 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)) {
/*
OpenPOWER on IntegriCloud