cgroups: subsystem module unloading
authorBen Blum <[email protected]>
Wed, 10 Mar 2010 23:22:09 +0000 (15:22 -0800)
committerLinus Torvalds <[email protected]>
Fri, 12 Mar 2010 23:52:36 +0000 (15:52 -0800)
commitcf5d5941fda647fe3d2f2d00cf9e0245236a5f08
treedeee6501f2f08089a2cd62732c3848a59a6f6a93
parente6a1105ba08b265023dd71a4174fb4a29ebc7083
cgroups: subsystem module unloading

Provides support for unloading modular subsystems.

This patch adds a new function cgroup_unload_subsys which is to be used
for removing a loaded subsystem during module deletion.  Reference
counting of the subsystems' modules is moved from once (at load time) to
once per attached hierarchy (in parse_cgroupfs_options and
rebind_subsystems) (i.e., 0 or 1).

Signed-off-by: Ben Blum <[email protected]>
Acked-by: Li Zefan <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/cgroups/cgroups.txt
include/linux/cgroup.h
kernel/cgroup.c