]> 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)
commitc9335ab0b91775e6497d35e81480a0ef7c653e13
tree24b46fb86c11aa95b0b12d456a4729a5f549723f
parentbc05bb947ca0303ae9a803ec662afa23f681e621
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