git: f6bbf7b80e75 - stable/14 - sched_4bsd: remove dumping from maybe_preempt()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Oct 2026 15:49:52 UTC
The branch stable/14 has been updated by mchoo:
URL: https://cgit.FreeBSD.org/src/commit/?id=f6bbf7b80e75d475d3156053a040bc7f6f1576ca
commit f6bbf7b80e75d475d3156053a040bc7f6f1576ca
Author: Minsoo Choo <mchoo@FreeBSD.org>
AuthorDate: 2026-08-24 02:25:31 +0000
Commit: Minsoo Choo <mchoo@FreeBSD.org>
CommitDate: 2026-10-02 15:40:08 +0000
sched_4bsd: remove dumping from maybe_preempt()
'dumping' is true only when kernel is dumping after crash (see
minidumpsys()) so KERNEL_PANICKED() will catch this.
Reviewed by: olce
Approved by: olce (mentor)
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59395
(cherry picked from commit 1dfefffcbdc652ee88a3baa284182f96e20faf17)
---
sys/kern/sched_4bsd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 1bbf1090b812..02157fdee7a8 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -346,8 +346,7 @@ maybe_preempt(struct thread *td)
("maybe_preempt: trying to run inhibited thread"));
pri = td->td_priority;
cpri = ctd->td_priority;
- if (KERNEL_PANICKED() || pri >= cpri /* || dumping */ ||
- TD_IS_INHIBITED(ctd))
+ if (KERNEL_PANICKED() || pri >= cpri || TD_IS_INHIBITED(ctd))
return (0);
#ifndef FULL_PREEMPTION
if (pri > PRI_MAX_ITHD && cpri < PRI_MIN_IDLE)