All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] CGroups: Hierarchy locking/refcount changes
@ 2008-12-16 11:30 ` menage
  0 siblings, 0 replies; 22+ messages in thread
From: menage @ 2008-12-16 11:30 UTC (permalink / raw)
  To: akpm, kamezawa.hiroyu, lizf; +Cc: linux-kernel, linux-mm

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()

Signed-off-by: Paul Menage <menage@google.com>

--

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-12-19  2:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 11:30 [PATCH 0/3] CGroups: Hierarchy locking/refcount changes menage
2008-12-16 11:30 ` menage
2008-12-16 11:30 ` [PATCH 1/3] CGroups: Add a per-subsystem hierarchy_mutex menage
2008-12-16 11:30   ` menage
2008-12-17  5:16   ` KAMEZAWA Hiroyuki
2008-12-17  5:16     ` KAMEZAWA Hiroyuki
2008-12-16 11:30 ` [PATCH 2/3] CGroups: Use hierarchy_mutex in memory controller menage
2008-12-16 11:30   ` menage
2008-12-17  5:17   ` KAMEZAWA Hiroyuki
2008-12-17  5:17     ` KAMEZAWA Hiroyuki
2008-12-16 11:30 ` [PATCH 3/3] CGroups: Add css_tryget() menage
2008-12-16 11:30   ` menage
2008-12-17  5:19   ` KAMEZAWA Hiroyuki
2008-12-17  5:19     ` KAMEZAWA Hiroyuki
2008-12-17 22:07   ` Andrew Morton
2008-12-17 22:07     ` Andrew Morton
2008-12-17 22:48     ` Paul Menage
2008-12-17 22:48       ` Paul Menage
2008-12-17 22:03 ` [PATCH 0/3] CGroups: Hierarchy locking/refcount changes Andrew Morton
2008-12-17 22:03   ` Andrew Morton
2008-12-19  2:06   ` Paul Menage
2008-12-19  2:06     ` Paul Menage

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.