From: "tip-bot2 for Chengkaitao" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Chengkaitao <chengkaitao@kylinos.cn>,
Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org
Subject: [tip: irq/core] genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier()
Date: Tue, 18 Nov 2025 15:26:41 -0000 [thread overview]
Message-ID: <176347960117.498.17350947220693548435.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20251118012754.61805-1-pilgrimtao@gmail.com>
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 9d3faec60b1303fbec53d7a9b48a8c0fc5ae029b
Gitweb: https://git.kernel.org/tip/9d3faec60b1303fbec53d7a9b48a8c0fc5ae029b
Author: Chengkaitao <chengkaitao@kylinos.cn>
AuthorDate: Tue, 18 Nov 2025 09:27:54 +08:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 18 Nov 2025 16:19:40 +01:00
genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier()
Since irq_set_affinity_notifier() may sleep, interrupts are enabled. So
raw_spinlock_irqsave() can be replaced with raw_spinlock_irq().
Signed-off-by: Chengkaitao <chengkaitao@kylinos.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251118012754.61805-1-pilgrimtao@gmail.com
---
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 c812b6f..c1ce30c 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;
}
prev parent reply other threads:[~2025-11-18 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 1:27 [PATCH] irq/manage: use raw_spinlock_irq in irq_set_affinity_notifier chengkaitao
2025-11-18 15:26 ` tip-bot2 for Chengkaitao [this message]
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=176347960117.498.17350947220693548435.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=chengkaitao@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=maz@kernel.org \
--cc=tglx@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®