mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bradley Morgan <brads@mainlining.org>
To: tip-bot2@linutronix.de
Cc: bigeasy@linutronix.de, enlin.mu@linux.dev, enlin.mu@unisoc.com,
	linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org,
	maz@kernel.org, tglx@kernel.org, tglx@linutronix.de,
	x86@kernel.org
Subject: Re: [tip: irq/core] softirq: Remove redundant h->action from preempt_count mismatch error
Date: Fri, 04 Sep 2026 11:38:18 +0100	[thread overview]
Message-ID: <BE63C676-1525-4E62-BD37-CF867671371D@mainlining.org> (raw)
In-Reply-To: <178850449605.3717435.10744522318261630112.tip-bot2@tip-bot2>

On 4 September 2026 07:48:16 BST, tip-bot2 for Enlin Mu
<tip-bot2@linutronix.de> wrote:
>The following commit has been merged into the irq/core branch of tip:
>
>Commit-ID:     67f399a9ac7f3001cafc0cb1b645e3e5760779d2
>Gitweb:        https://git.kernel.org/tip/67f399a9ac7f3001cafc0cb1b645e3e5760779d2
>Author:        Enlin Mu <enlin.mu@linux.dev>
>AuthorDate:    Tue, 25 Aug 2026 09:15:09 +08:00
>Committer:     Thomas Gleixner <tglx@kernel.org>
>CommitterDate: Fri, 04 Sep 2026 08:45:56 +02:00
>
>softirq: Remove redundant h->action from preempt_count mismatch error
>
>When a preempt_count mismatch is detected in handle_softirqs(), the
>error message currently prints the softirq action handler (h->action).
>
>However, as Thomas Gleixner pointed out, the action handler for a given
>softirq vector is always a known, fixed function (e.g., run_timer_softirq
>for TIMER_SOFTIRQ). Printing it provides zero diagnostic value. The real
>issue typically lies in the functions invoked *within* that handler, not
>the handler entry point itself.
>
>Therefore, as suggested by Sebastian Andrzej Siewior, remove h->action
>from the print statement entirely to clean up the error message.
>
>Suggested-by: Thomas Gleixner <tglx@linutronix.de>
>Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
>Signed-off-by: Enlin Mu <enlin.mu@unisoc.com>
>Signed-off-by: Enlin Mu <enlin.mu@linux.dev>
>Signed-off-by: Thomas Gleixner <tglx@kernel.org>
>Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

Hi, What's wrong with my tag? I'm sure I provided it! On my old email, see

https://lore.kernel.org/all/A86DF76C-F103-4BD1-A5FF-B4701B7A9FEF@grrlz.net/

New tag:

Reviewed-by: Bradley Morgan <brads@mainlining.org>

if there's anything wrong with my tag, please feel free to tell me and
I'llcomment on it

>Link: https://patch.msgid.link/20260825011509.8505-1-enlin.mu@linux.dev
>---
> kernel/softirq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/kernel/softirq.c b/kernel/softirq.c
>index 7980a4a..800d81c 100644
>--- a/kernel/softirq.c
>+++ b/kernel/softirq.c
>@@ -645,8 +645,8 @@ restart:
> 		h->action();
> 		trace_softirq_exit(vec_nr);
> 		if (unlikely(prev_count != preempt_count())) {
>-			pr_err("huh, entered softirq %u %s %p with preempt_count %08x, exited with %08x?\n",
>-			       vec_nr, softirq_to_name[vec_nr], h->action,
>+			pr_err("huh, entered softirq %u %s with preempt_count %08x, exited with %08x?\n",
>+			       vec_nr, softirq_to_name[vec_nr],
> 			       prev_count, preempt_count());
> 			preempt_count_set(prev_count);
> 		}
>
>

--- Thanks!
https://lore.kernel.org/all/EE579805-42F2-4C58-B752-F28779EEB717@grrlz.net/

  reply	other threads:[~2026-09-04 10:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-25  1:15 [PATCH v2] " Enlin Mu
2026-08-25  6:53 ` Sebastian Andrzej Siewior
2026-08-25 13:08 ` Bradley Morgan
2026-09-04  6:48 ` [tip: irq/core] " tip-bot2 for Enlin Mu
2026-09-04 10:38   ` Bradley Morgan [this message]
2026-09-05 18:59     ` Thomas Gleixner
2026-09-05 19:00 ` tip-bot2 for Enlin Mu
2026-09-05 21:45   ` Bradley Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BE63C676-1525-4E62-BD37-CF867671371D@mainlining.org \
    --to=brads@mainlining.org \
    --cc=bigeasy@linutronix.de \
    --cc=enlin.mu@linux.dev \
    --cc=enlin.mu@unisoc.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=tglx@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=tip-bot2@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®