aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2021-04-16 17:11:46 +0200
committerSteffen Klassert <[email protected]>2021-04-19 12:49:29 +0200
commit747b67088f8d34b3ec64d31447a1044be92dd348 (patch)
tree67a3a9e9fd18a48a8270fc903a4f62a50b1f3be4 /scripts/gdb/linux/timerlist.py
parent6218fe186109b93a2fa2343e13981e016e9961ab (diff)
xfrm: ipcomp: remove unnecessary get_cpu()
While testing ipcomp on a realtime kernel, Xiumei reported a "sleeping in atomic" bug, caused by a memory allocation while preemption is disabled (ipcomp_decompress -> alloc_page -> ... get_page_from_freelist). As Sebastian noted [1], this get_cpu() isn't actually needed, since ipcomp_decompress() is called in napi context anyway, so BH is already disabled. This patch replaces get_cpu + per_cpu_ptr with this_cpu_ptr, then simplifies the error returns, since there isn't any common operation left. [1] https://lore.kernel.org/lkml/[email protected]/ Cc: Juri Lelli <[email protected]> Reported-by: Xiumei Mu <[email protected]> Suggested-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Sabrina Dubroca <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions