diff options
author | 2024-06-26 21:10:17 +0200 | |
---|---|---|
committer | 2024-07-04 18:05:58 -0700 | |
commit | 8ac5dc66599c5c545cefd314dd34a109edce2784 (patch) | |
tree | c2387c3919af3ce2dac11063efa74713b37cf3d1 /mm/memcontrol.c | |
parent | memcg: mm_update_next_owner: move for_each_thread() into try_to_set_owner() (diff) | |
download | wireguard-linux-8ac5dc66599c5c545cefd314dd34a109edce2784.tar.xz wireguard-linux-8ac5dc66599c5c545cefd314dd34a109edce2784.zip |
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 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions