[PATCH 10/12] cgroup: introduce cgroup_{save|propagate|restore}_control()

2016-02-22 Thread Tejun Heo
While controllers are being enabled and disabled in cgroup_subtree_control_write(), the original subsystem masks are stashed in local variables so that they can be restored if the operation fails in the middle. This patch adds dedicated fields to struct cgroup to be used instead of the local

[PATCH 10/12] cgroup: introduce cgroup_{save|propagate|restore}_control()

2016-02-22 Thread Tejun Heo
While controllers are being enabled and disabled in cgroup_subtree_control_write(), the original subsystem masks are stashed in local variables so that they can be restored if the operation fails in the middle. This patch adds dedicated fields to struct cgroup to be used instead of the local