Repository navigation
Commit 0450236
committed
cgroup: remove cgroup_pidlist->use_count
After the recent changes, pidlist ref is held only between
cgroup_pidlist_start() and cgroup_pidlist_stop() during which
cgroup->pidlist_mutex is also held. IOW, the reference count is
redundant now. While in use, it's always one and pidlist_mutex is
held - holding the mutex has exactly the same protection.
This patch collapses destroy_dwork queueing into cgroup_pidlist_stop()
so that pidlist_mutex is not released inbetween and drops
pidlist->use_count.
This patch shouldn't introduce any behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>1 parent 4bac00d commit 0450236
1 file changed
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3456 | 3456 | | |
3457 | 3457 | | |
3458 | 3458 | | |
3459 | | - | |
3460 | | - | |
3461 | 3459 | | |
3462 | 3460 | | |
3463 | 3461 | | |
| |||
3473 | 3471 | | |
3474 | 3472 | | |
3475 | 3473 | | |
3476 | | - | |
3477 | | - | |
3478 | 3474 | | |
3479 | 3475 | | |
3480 | 3476 | | |
| |||
3524 | 3520 | | |
3525 | 3521 | | |
3526 | 3522 | | |
3527 | | - | |
3528 | | - | |
| 3523 | + | |
| 3524 | + | |
3529 | 3525 | | |
3530 | | - | |
| 3526 | + | |
3531 | 3527 | | |
3532 | 3528 | | |
3533 | 3529 | | |
| |||
3775 | 3771 | | |
3776 | 3772 | | |
3777 | 3773 | | |
3778 | | - | |
3779 | 3774 | | |
3780 | 3775 | | |
3781 | 3776 | | |
| |||
3804 | 3799 | | |
3805 | 3800 | | |
3806 | 3801 | | |
3807 | | - | |
3808 | 3802 | | |
3809 | | - | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
3810 | 3807 | | |
3811 | 3808 | | |
3812 | 3809 | | |
| |||
3844 | 3841 | | |
3845 | 3842 | | |
3846 | 3843 | | |
3847 | | - | |
3848 | | - | |
3849 | | - | |
3850 | | - | |
3851 | | - | |
3852 | | - | |
3853 | | - | |
3854 | | - | |
3855 | | - | |
3856 | | - | |
3857 | | - | |
3858 | 3844 | | |
3859 | 3845 | | |
3860 | 3846 | | |
| |||
0 commit comments