Skip to content

CGroups: Hierarchy locking/refcount changes

[email protected] linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3CGroups: Add a per-subsystem hierarchy_mutexDocumentation/cgroups/cgroups.txt include/linux/cgroup.h kernel/cgroup.c+52 -41 reply
2/3CGroups: Use hierarchy_mutex in memory controllermm/memcontrol.c+6 -81 reply
3/3CGroups: Add css_tryget()include/linux/cgroup.h kernel/cgroup.c+88 -113 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchKAMEZAWA Hiroyuki
1/3T-b
2/3T-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] CGroups: Hierarchy locking/refcount changes

These patches introduce new locking/refcount support for cgroups to reduce the need for subsystems to call cgroup_lock(). This will ultimately allow the atomicity of cgroup_rmdir() (which was removed recently) to be restored.

These three patches give:

1/3 - introduce a per-subsystem hierarchy_mutex which a subsystem can
use to prevent changes to its own cgroup tree

2/3 - use hierarchy_mutex in place of calling cgroup_lock() in the
memory controller

3/3 - introduce a css_tryget() function similar to the one recently
proposed by Kamezawa, but avoiding spurious refcount failures in the event of a race between a css_tryget() and an unsuccessful cgroup_rmdir()

Future patches will likely involve:

- using hierarchy mutex in place of cgroup_lock() in more subsystems where appropriate

- restoring the atomicity of cgroup_rmdir() with respect to cgroup_create()

--
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>