linux-stable/arch/nios2/mm
Helge Deller 7db15418d3 nios2: 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 NIOS2
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.

Link: https://lkml.kernel.org/r/ZOTF5WWURQNH9+iw@p100
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-24 16:20:31 -07:00
..
cacheflush.c nios2: fix flush_dcache_page() for usage from irq context 2023-08-24 16:20:31 -07:00
dma-mapping.c
extable.c
fault.c mm/fault: convert remaining simple cases to lock_mm_and_find_vma() 2023-06-24 14:12:58 -07:00
init.c nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
ioremap.c
Makefile
mmu_context.c
pgtable.c nios2: drop definition of PGD_ORDER 2022-07-17 17:14:43 -07:00
tlb.c
uaccess.c