]> git.baikalelectronics.ru Git - kernel.git/commit
xen/evtchn: Change irq_info lock to raw_spinlock_t
authorLuca Fancellu <luca.fancellu@arm.com>
Tue, 6 Apr 2021 10:51:04 +0000 (11:51 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 7 Apr 2021 13:33:28 +0000 (08:33 -0500)
commitdb9eb227fa5d50d7797653cf136d1c2c61c885e3
treedc7176a96647430774e40edce36a6fd8c6d43ef3
parent9a0ed09754a44d0b5c9892c0b0dd68abf4914821
xen/evtchn: Change irq_info lock to raw_spinlock_t

Unmask operation must be called with interrupt disabled,
on preempt_rt spin_lock_irqsave/spin_unlock_irqrestore
don't disable/enable interrupts, so use raw_* implementation
and change lock variable in struct irq_info from spinlock_t
to raw_spinlock_t

Cc: stable@vger.kernel.org
Fixes: 5464d7902a67 ("xen/events: don't unmask an event channel when an eoi is pending")
Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/20210406105105.10141-1-luca.fancellu@arm.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/events/events_base.c