mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
The DTL buffer is allocated while holding dtl_global_lock, which
is spinlock.
GFP_KERNEL allow direct memory reclaim and may sleep. Combining
GFP_KERNEL with GFP_ATOMIC does not remove the direct reclaim.
Use GFP_ATOMIC alone to ensure the allocation does not sleep
while the spinlock is held.
The issue is reported by script coccinelle call_kern.cocci.
Signed-off-by: Mohammad Shahid <[email protected]>
Fixes: 4708fba19a ("powerpc/vpa_dtl: Add interface to expose vpa dtl counters via perf")
Reviewed-by: Ritesh Harjani (IBM) <[email protected]>
Signed-off-by: Madhavan Srinivasan <[email protected]>
Link: https://patch.msgid.link/[email protected]