YAMAMOTO Takashi 1d4a788f15 memcgroup: fix spurious EBUSY on memory cgroup removal
Call mm_free_cgroup earlier.  Otherwise a reference due to lazy mm switching
can prevent cgroup removal.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-28 14:45:21 -07:00
..
2008-02-14 21:13:33 -08:00
2007-10-21 02:37:45 -04:00
2008-02-14 21:13:33 -08:00
2008-03-05 17:53:33 -08:00
2007-10-18 14:37:24 -07:00
2008-03-08 11:54:00 -08:00
2008-03-27 08:02:13 -07:00
2008-01-25 21:08:29 +01:00
2007-07-16 09:05:50 -07:00
2008-02-14 21:13:32 -08:00
2008-01-25 21:08:34 +01:00
2008-02-08 09:22:39 -08:00
2008-03-24 19:22:19 -07:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2008-01-25 21:08:24 +01:00
2008-02-13 16:21:18 -08:00
2008-01-25 21:08:24 +01:00
2008-03-19 04:27:53 +01:00
2007-07-16 09:05:50 -07:00
2008-03-04 07:59:54 -08:00
2008-01-30 13:31:20 +01:00
2008-02-06 10:41:02 -08:00
2008-02-06 10:41:08 -08:00
2008-02-05 09:44:07 -08:00
2008-02-08 09:22:29 -08:00
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:31 -08:00