diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2021-04-16 18:11:46 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-04-19 13:49:29 +0300 |
commit | 747b67088f8d34b3ec64d31447a1044be92dd348 (patch) | |
tree | 67a3a9e9fd18a48a8270fc903a4f62a50b1f3be4 /fs/exfat/cache.c | |
parent | 6218fe186109b93a2fa2343e13981e016e9961ab (diff) | |
download | linux-747b67088f8d34b3ec64d31447a1044be92dd348.tar.xz |
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/20190820082810.ixkmi56fp7u7eyn2@linutronix.de/
Cc: Juri Lelli <jlelli@redhat.com>
Reported-by: Xiumei Mu <xmu@redhat.com>
Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'fs/exfat/cache.c')
0 files changed, 0 insertions, 0 deletions