• Tejun Heo's avatar
    cgroup: separate out put_css_set_locked() and remove put_css_set_taskexit() · 89c5509b
    Tejun Heo authored
    put_css_set() is performed in two steps - it first tries to put
    without grabbing css_set_rwsem if such put wouldn't make the count
    zero.  If that fails, it puts after write-locking css_set_rwsem.  This
    patch separates out the second phase into put_css_set_locked() which
    should be called with css_set_rwsem locked.
    
    Also, put_css_set_taskexit() is droped and put_css_set() is made to
    take @taskexit.  There are only a handful users of these functions.
    No point in providing different variants.
    
    put_css_locked() will be used by later changes.  This patch doesn't
    introduce any functional changes.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    89c5509b
cgroup.c 124 KB