Commit 6fe9601
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent 1805c17 commit 6fe9601
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6701 | 6701 | | |
6702 | 6702 | | |
6703 | 6703 | | |
6704 | | - | |
6705 | 6704 | | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
6706 | 6708 | | |
6707 | 6709 | | |
6708 | 6710 | | |
| |||
6729 | 6731 | | |
6730 | 6732 | | |
6731 | 6733 | | |
6732 | | - | |
6733 | | - | |
6734 | | - | |
6735 | | - | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
| 6739 | + | |
6736 | 6740 | | |
6737 | 6741 | | |
6738 | 6742 | | |
| |||
0 commit comments