]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup_freezer: simplify propagation of CGROUP_FROZEN clearing in freezer_attach()
authorTejun Heo <tj@kernel.org>
Thu, 3 Dec 2015 15:18:21 +0000 (10:18 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 3 Dec 2015 15:18:21 +0000 (10:18 -0500)
commitd866025778a2be69b0ea242980c26c879526e47b
treeb52ebb214fb8c1e7ba13494b0d7b5ad9d8a4846d
parente38a21bb2ef2a9fcb56c0629295d8e3c38d5408e
cgroup_freezer: simplify propagation of CGROUP_FROZEN clearing in freezer_attach()

If one or more tasks get moved into a frozen css, the frozen state is
cleared up from the destination css so that it can be reasserted once
the migrated tasks are frozen.  freezer_attach() implements this in
two separate steps - clearing CGROUP_FROZEN on the target css while
processing each task and propagating the clearing upwards after the
task loop is done if necessary.

This patch merges the two steps.  Propagation now takes place inside
the task loop.  This simplifies the code and prepares it for the fix
of multi-destination migration.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup_freezer.c