From: Bart Van Assche <bvanassche@acm.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org,
Bart Van Assche <bvanassche@acm.org>
Subject: [PATCH 0/5] Make it easier to use nested locking for interrupt descriptors
Date: Mon, 3 Feb 2025 09:59:34 -0800 [thread overview]
Message-ID: <20250203175939.3133477-1-bvanassche@acm.org> (raw)
Hi Thomas,
The number of irq_set_lockdep_class() calls and IRQ_GC_INIT_NESTED_LOCK
occurrences in the kernel tree shows that nested locking is common for
interrupt descriptors. This patch series makes it easier to use nested
locking by removing the function irq_set_lockdep_class() and also the
IRQ_GC_INIT_NESTED_LOCK flag.
As one can tell from the diffstat, this patch series removes more code
than it adds.
Please consider this patch series for the next merge window.
Thanks,
Bart.
Bart Van Assche (5):
lockdep: Introduce lockdep_unregister_key_nosync()
irqdesc: Use dynamic lockdep keys for interrupt descriptors
irq: Remove irq_set_lockdep_class() and __irq_set_lockdep_class()
irq: Remove the IRQ_GC_INIT_NESTED_LOCK flag
irq: Simplify gpiochip_add_data()
arch/powerpc/sysdev/fsl_msi.c | 5 ---
drivers/base/regmap/regmap-irq.c | 4 ---
drivers/gpio/gpio-bcm-kona.c | 8 -----
drivers/gpio/gpio-brcmstb.c | 10 ------
drivers/gpio/gpio-mxc.c | 3 +-
drivers/gpio/gpio-mxs.c | 3 +-
drivers/gpio/gpiolib-devres.c | 12 +++----
drivers/gpio/gpiolib.c | 30 ++++-------------
drivers/gpu/drm/msm/msm_mdss.c | 3 --
drivers/irqchip/irq-imgpdc.c | 3 +-
drivers/irqchip/irq-renesas-intc-irqpin.c | 11 ------
drivers/irqchip/irq-renesas-irqc.c | 2 +-
drivers/mfd/arizona-irq.c | 5 ---
drivers/net/dsa/mv88e6xxx/chip.c | 8 -----
drivers/pinctrl/pinctrl-at91-pio4.c | 8 -----
drivers/pinctrl/pinctrl-single.c | 11 ------
drivers/pinctrl/sunxi/pinctrl-sunxi.c | 9 -----
drivers/spmi/spmi-pmic-arb.c | 5 ---
drivers/thermal/qcom/lmh.c | 7 ----
include/linux/gpio/driver.h | 41 ++---------------------
include/linux/irq.h | 4 ---
include/linux/irqdesc.h | 14 +++-----
include/linux/lockdep.h | 5 +++
kernel/irq/generic-chip.c | 15 ---------
kernel/irq/irqdesc.c | 30 +++++------------
kernel/locking/lockdep.c | 22 ++++++++++--
26 files changed, 54 insertions(+), 224 deletions(-)
next reply other threads:[~2025-02-03 18:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-03 17:59 Bart Van Assche [this message]
2025-02-03 17:59 ` [PATCH 1/5] lockdep: Introduce lockdep_unregister_key_nosync() Bart Van Assche
2025-02-03 17:59 ` [PATCH 2/5] irqdesc: Use dynamic lockdep keys for interrupt descriptors Bart Van Assche
2025-02-03 17:59 ` [PATCH 3/5] irq: Remove irq_set_lockdep_class() and __irq_set_lockdep_class() Bart Van Assche
2025-02-03 17:59 ` [PATCH 4/5] irq: Remove the IRQ_GC_INIT_NESTED_LOCK flag Bart Van Assche
2025-02-03 17:59 ` [PATCH 5/5] irq: Simplify gpiochip_add_data() Bart Van Assche
2025-02-03 19:40 ` [PATCH 0/5] Make it easier to use nested locking for interrupt descriptors Thomas Gleixner
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=20250203175939.3133477-1-bvanassche@acm.org \
--to=bvanassche@acm.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.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®