OSDN Git Service

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)
commitd120198bd5ff1d41808b6914e1eb89aff937415c
treedc7176a96647430774e40edce36a6fd8c6d43ef3
parenta846738f8c3788d846ed1f587270d2f2e3d32432
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: 25da4618af24 ("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