]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: suppress spurious de-populated events
authorTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:57 +0000 (09:57 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 3 Mar 2016 14:57:57 +0000 (09:57 -0500)
commit9217d9030308b30295e721d2d952ef2a0a590a17
tree5ca01cf119f13dbd501886cecd917f0705382d96
parenta027cb41a46fa98e99da011d636f70c4ae4a1ed4
cgroup: suppress spurious de-populated events

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: Tejun Heo <tj@kernel.org>
Acked-by: Zefan Li <lizefan@huawei.com>
kernel/cgroup.c