mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irq/manage: use raw_spinlock_irq in irq_set_affinity_notifier
@ 2025-11-18  1:27 chengkaitao
  2025-11-18 15:26 ` [tip: irq/core] genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier() tip-bot2 for Chengkaitao
  0 siblings, 1 reply; 2+ messages in thread
From: chengkaitao @ 2025-11-18  1:27 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel, Chengkaitao

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(&notify->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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-18 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-18  1:27 [PATCH] irq/manage: use raw_spinlock_irq in irq_set_affinity_notifier chengkaitao
2025-11-18 15:26 ` [tip: irq/core] genirq: Use raw_spinlock_irq() in irq_set_affinity_notifier() tip-bot2 for Chengkaitao

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®