Home
last modified time | relevance | path

Searched hist:"61 e150fb310729c98227a5edf6e4a3619edc3702" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/parisc/kernel/
H A Dcache.cdiff 61e150fb310729c98227a5edf6e4a3619edc3702 Wed May 24 17:07:07 CEST 2023 Helge Deller <deller@gmx.de> parisc: Fix flush_dcache_page() for usage from irq context

Since at least kernel 6.1, flush_dcache_page() is called with IRQs
disabled, e.g. from aio_complete().

But the current implementation for flush_dcache_page() on parisc
unintentionally re-enables IRQs, which may lead to deadlocks.

Fix it by using xa_lock_irqsave() and xa_unlock_irqrestore()
for the flush_dcache_mmap_*lock() macros instead.

Cc: linux-parisc@vger.kernel.org
Cc: stable@kernel.org # 5.18+
Signed-off-by: Helge Deller <deller@gmx.de>