irqdomain: Drop revmap mutex
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 13 Feb 2023 10:42:50 +0000 (11:42 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Feb 2023 19:31:24 +0000 (19:31 +0000)
commit47d1932f37de99bae3345bb93f098ac8750ab0fb
treed63790a43dd16739bb2c1dbb1c89d16d02967ecb
parent8932c32c3053accd50702b36e944ac2016cd103c
irqdomain: Drop revmap mutex

The revmap mutex is essentially only used to maintain the integrity of
the radix tree during updates (lookups use RCU).

As the global irq_domain_mutex is now held in all paths that update the
revmap structures there is strictly no longer any need for the dedicated
mutex, which can be removed.

Drop the revmap mutex and add lockdep assertions to the revmap helpers
to make sure that the global lock is always held when updating the
revmap.

Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230213104302.17307-9-johan+linaro@kernel.org
include/linux/irqdomain.h
kernel/irq/irqdomain.c