diff options
author | Oleg Nesterov <oleg@redhat.com> | 2024-06-26 21:10:17 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-07-04 18:05:58 -0700 |
commit | 8ac5dc66599c5c545cefd314dd34a109edce2784 (patch) | |
tree | c2387c3919af3ce2dac11063efa74713b37cf3d1 /lib/pm-notifier-error-inject.c | |
parent | d73d00352145fb51d31771047aa939850d87fa50 (diff) |
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/20240626191017.GA20031@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions