diff options
author | Oleg Nesterov <oleg@redhat.com> | 2024-06-17 17:31:52 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2024-06-19 20:18:41 +0300 |
commit | 6fe960147e08e931dda1ef325dc69320e544aa73 (patch) | |
tree | 53886297790fccbbd59f6a59026bd52447b83a90 /scripts/gdb/linux/modules.py | |
parent | 1805c1729f52edaa021288473b09f9c7f74fb1ca (diff) | |
download | linux-6fe960147e08e931dda1ef325dc69320e544aa73.tar.xz |
cgroup: avoid the unnecessary list_add(dying_tasks) in cgroup_exit()
cgroup_exit() needs to do this only if the exiting task is a leader and it
is not the last live thread. The patch doesn't use delay_group_leader(),
atomic_read(signal->live) matches the code css_task_iter_advance() more.
cgroup_release() can now check list_empty(task->cg_list) before it takes
css_set_lock and calls ss_set_skip_task_iters().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions