git: 1dfefffcbdc6 - main - sched_4bsd: remove dumping from maybe_preempt()

From: Minsoo Choo <mchoo_at_FreeBSD.org>
Date: Fri, 18 Sep 2026 14:14:45 UTC
The branch main has been updated by mchoo:

URL: https://cgit.FreeBSD.org/src/commit/?id=1dfefffcbdc652ee88a3baa284182f96e20faf17

commit 1dfefffcbdc652ee88a3baa284182f96e20faf17
Author:     Minsoo Choo <mchoo@FreeBSD.org>
AuthorDate: 2026-08-24 02:25:31 +0000
Commit:     Minsoo Choo <mchoo@FreeBSD.org>
CommitDate: 2026-09-18 14:14:12 +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
---
 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 2cd882eb301d..95170c1a4e02 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -337,8 +337,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)