]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
devcg: use css_online and css_offline
authorAristeu Rozanski <aris@redhat.com>
Fri, 15 Feb 2013 16:55:46 +0000 (11:55 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 20 Mar 2013 14:50:17 +0000 (07:50 -0700)
commit1909554c9715e4d032497993bb56f2726bfa89ae
treedb3a67d9f29afd47e8d827cebeabd5f87a7a1225
parentc39a2a3018f8065cb5ea38b0314c1bbedb2cfa0d
devcg: use css_online and css_offline

Allocate resources and change behavior only when online. This is needed in
order to determine if a node is suitable for hierarchy propagation or if it's
being removed.

Locking:
Both functions take devcgroup_mutex to make changes to device_cgroup structure.
Hierarchy propagation will also take devcgroup_mutex before walking the
tree while walking the tree itself is protected by rcu lock.

Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
security/device_cgroup.c