]> 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)
commitd4a45c68dc81f9117ceaff9f058d5fae674181b9
tree24b46fb86c11aa95b0b12d456a4729a5f549723f
parent48b15a7921d60680babe59f64e127816585a585c
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