summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2023-07-05 16:54:04 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-07-08 18:29:32 +0200
commit8ba388c06bc8056935ec1814b2689bfb42f3b89a (patch)
treec63f71f7e9d6220924bef8e4efebc00ebc5efd98 /fs/nfs
parentkasan, slub: fix HW_TAGS zeroing with slub_debug (diff)
downloadlinux-8ba388c06bc8056935ec1814b2689bfb42f3b89a.tar.xz
linux-8ba388c06bc8056935ec1814b2689bfb42f3b89a.zip
lib: dhry: fix sleeping allocations inside non-preemptable section
The Smatch static checker reports the following warnings: lib/dhry_run.c:38 dhry_benchmark() warn: sleeping in atomic context lib/dhry_run.c:43 dhry_benchmark() warn: sleeping in atomic context Indeed, dhry() does sleeping allocations inside the non-preemptable section delimited by get_cpu()/put_cpu(). Fix this by using atomic allocations instead. Add error handling, as atomic these allocations may fail. Link: https://lkml.kernel.org/r/bac6d517818a7cd8efe217c1ad649fffab9cc371.1688568764.git.geert+renesas@glider.be Fixes: 13684e966d46283e ("lib: dhry: fix unstable smp_processor_id(_) usage") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/0469eb3a-02eb-4b41-b189-de20b931fa56@moroto.mountain Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/nfs')
0 files changed, 0 insertions, 0 deletions