diff options
| author | Mohammad Shahid <mdshahid03@gmail.com> | 2026-11-02 20:07:19 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-11-11 17:33:20 +0530 |
| commit | 9500416c8aa7c271b85be6a0d5856da62b60223a (patch) | |
| tree | 5c6db19ef3c4140266ad58c7397c51fc85ddd7e7 /kernel/debug/debug_core.c | |
| parent | dc6eb6f08be536223e8289c7a8b1f515b1355721 (diff) | |
powerpc/perf/vpa-dtl: use GFP_ATOMIC for DTL buffer allocation
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 <mdshahid03@gmail.com>
Fixes: 4708fba19ade ("powerpc/vpa_dtl: Add interface to expose vpa dtl counters via perf")
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20261102143719.165508-1-mdshahid03@gmail.com
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions
