summaryrefslogtreecommitdiff
path: root/lib/rhashtable.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2024-11-19 15:35:26 +0100
committerAndrew Morton <akpm@linux-foundation.org>2025-01-12 20:21:06 -0800
commit51f8bd6db591689fa1c67628b4cfe9778e76be6d (patch)
treeb3336ea1a3902a189e9ccc49af2f0b44dd638648 /lib/rhashtable.c
parent93b6bd40688ba17225ba8c5f28e8ccb713359b05 (diff)
get_task_exe_file: check PF_KTHREAD locklessly
Same thing as 8ac5dc66599c ("get_task_mm: check PF_KTHREAD lockless") Nowadays PF_KTHREAD is sticky and it was never protected by ->alloc_lock. Move the PF_KTHREAD check outside of task_lock() section to make this code more understandable. Link: https://lkml.kernel.org/r/20241119143526.704986-1-mjguzik@gmail.com Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Acked-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/rhashtable.c')
0 files changed, 0 insertions, 0 deletions