]> err.no Git - linux-2.6/commit
cgroups: move cgroups destroy() callbacks to cgroup_diput()
authorPaul Menage <menage@google.com>
Thu, 7 Feb 2008 08:13:45 +0000 (00:13 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:18 +0000 (08:42 -0800)
commit8dc4f3e17dd5f7e59ce568155ccd8974af879315
tree959b1197fea798c9daae4dd6c9596ab710d41fda
parent622d42cac9ed42098aa50c53994f625abfa3d473
cgroups: move cgroups destroy() callbacks to cgroup_diput()

Move the calls to the cgroup subsystem destroy() methods from
cgroup_rmdir() to cgroup_diput().  This allows control file reads and
writes to access their subsystem state without having to be concerned with
locking against cgroup destruction - the control file dentry will keep the
cgroup and its subsystem state objects alive until the file is closed.

The documentation is updated to reflect the changed semantics of destroy();
additionally the locking comments for destroy() and some other methods were
clarified and decrustified.

Signed-off-by: Paul Menage <menage@google.com>
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/cgroups.txt
kernel/cgroup.c