• Tejun Heo's avatar
    cgroup: suppress spurious de-populated events · 20b454a6
    Tejun Heo authored
    During task migration, tasks may transfer between two css_sets which
    are associated with the same cgroup.  If those tasks are the only
    tasks in the cgroup, this currently triggers a spurious de-populated
    event on the cgroup.
    
    Fix it by bumping up populated count before bumping it down during
    migration to ensure that it doesn't reach zero spuriously.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarZefan Li <lizefan@huawei.com>
    20b454a6
cgroup.c 163 KB