From: chengkaitao <pilgrimtao@gmail.com>
To: tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org, Chengkaitao <chengkaitao@kylinos.cn>
Subject: [PATCH] irq/manage: use raw_spinlock_irq in irq_set_affinity_notifier
Date: Tue, 18 Nov 2025 09:27:54 +0800 [thread overview]
Message-ID: <20251118012754.61805-1-pilgrimtao@gmail.com> (raw)
From: Chengkaitao <chengkaitao@kylinos.cn>
Since irq_set_affinity_notifier may sleep, there is no disable_irq nesting
scenario, so raw_spinlock_irqsave can be replaced with raw_spinlock_irq.
Signed-off-by: Chengkaitao <chengkaitao@kylinos.cn>
---
kernel/irq/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 400856abf672..065040028bda 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -547,7 +547,7 @@ int irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *noti
INIT_WORK(¬ify->work, irq_affinity_notify);
}
- scoped_guard(raw_spinlock_irqsave, &desc->lock) {
+ scoped_guard(raw_spinlock_irq, &desc->lock) {
old_notify = desc->affinity_notify;
desc->affinity_notify = notify;
}
--
2.50.1 (Apple Git-155)
next reply other threads:[~2025-11-18 1:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 1:27 chengkaitao [this message]
2025-11-18 15:26 ` [tip: irq/core] genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier() tip-bot2 for Chengkaitao
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=20251118012754.61805-1-pilgrimtao@gmail.com \
--to=pilgrimtao@gmail.com \
--cc=chengkaitao@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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®