]> git.baikalelectronics.ru Git - kernel.git/commit
irqdomain: Protect the linear revmap with RCU
authorMarc Zyngier <maz@kernel.org>
Mon, 5 Apr 2021 11:57:27 +0000 (12:57 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Jun 2021 12:09:18 +0000 (13:09 +0100)
commitc3c03329ff327f69d2e59d097486de5023391740
tree24b46fb86c11aa95b0b12d456a4729a5f549723f
parent804bc5cc3d42f98e174ee4ec16758419df747609
irqdomain: Protect the linear revmap with RCU

It is pretty odd that the radix tree uses RCU while the linear
portion doesn't, leading to potential surprises for the users,
depending on how the irqdomain has been created.

Fix this by moving the update of the linear revmap under
the mutex, and the lookup under the RCU read-side lock.

The mutex name is updated to reflect that it doesn't only
cover the radix-tree anymore.

Signed-off-by: Marc Zyngier <maz@kernel.org>
include/linux/irqdomain.h
kernel/irq/irqdomain.c