diff options
| author | Oleg Nesterov <[email protected]> | 2024-06-26 21:10:17 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-04 18:05:58 -0700 |
| commit | 8ac5dc66599c5c545cefd314dd34a109edce2784 (patch) | |
| tree | c2387c3919af3ce2dac11063efa74713b37cf3d1 /tools/perf/scripts/python/flamegraph.py | |
| 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/[email protected]
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Eric W. Biederman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions