diff options
author | Aristeu Rozanski <aris@redhat.com> | 2013-02-15 11:55:46 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-20 07:50:17 -0700 |
commit | 1909554c9715e4d032497993bb56f2726bfa89ae (patch) | |
tree | db3a67d9f29afd47e8d827cebeabd5f87a7a1225 /security/Makefile | |
parent | c39a2a3018f8065cb5ea38b0314c1bbedb2cfa0d (diff) |
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>
Diffstat (limited to 'security/Makefile')
0 files changed, 0 insertions, 0 deletions