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 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | memcg: mm_update_next_owner: move for_each_thread() into try_to_set_owner() (diff) | |
| download | linux-8ac5dc66599c5c545cefd314dd34a109edce2784.tar.gz 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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
