From: Greg Kroah-Hartman Date: Thu, 22 Dec 2011 22:54:27 +0000 (-0800) Subject: 3.0 patches X-Git-Tag: v3.0.15~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a97544b65014daa29f5b4e2d9be0894d06dcc176;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0 patches added patches: memcg-keep-root-group-unchanged-if-creation-fails.patch --- diff --git a/queue-3.0/memcg-keep-root-group-unchanged-if-creation-fails.patch b/queue-3.0/memcg-keep-root-group-unchanged-if-creation-fails.patch new file mode 100644 index 00000000000..c97e3527d21 --- /dev/null +++ b/queue-3.0/memcg-keep-root-group-unchanged-if-creation-fails.patch @@ -0,0 +1,49 @@ +From a41c58a6665cc995e237303b05db42100b71b65e Mon Sep 17 00:00:00 2001 +From: Hillf Danton +Date: Mon, 19 Dec 2011 17:11:57 -0800 +Subject: memcg: keep root group unchanged if creation fails + +From: Hillf Danton + +commit a41c58a6665cc995e237303b05db42100b71b65e upstream. + +If the request is to create non-root group and we fail to meet it, we +should leave the root unchanged. + +Signed-off-by: Hillf Danton +Signed-off-by: Hugh Dickins +Acked-by: KAMEZAWA Hiroyuki +Acked-by: Michal Hocko +Cc: Balbir Singh +Cc: David Rientjes +Cc: Andrea Arcangeli +Cc: Johannes Weiner +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman + +--- + mm/memcontrol.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/mm/memcontrol.c ++++ b/mm/memcontrol.c +@@ -4963,9 +4963,9 @@ mem_cgroup_create(struct cgroup_subsys * + int cpu; + enable_swap_cgroup(); + parent = NULL; +- root_mem_cgroup = mem; + if (mem_cgroup_soft_limit_tree_init()) + goto free_out; ++ root_mem_cgroup = mem; + for_each_possible_cpu(cpu) { + struct memcg_stock_pcp *stock = + &per_cpu(memcg_stock, cpu); +@@ -5004,7 +5004,6 @@ mem_cgroup_create(struct cgroup_subsys * + return &mem->css; + free_out: + __mem_cgroup_free(mem); +- root_mem_cgroup = NULL; + return ERR_PTR(error); + } + diff --git a/queue-3.0/series b/queue-3.0/series index 66ac27e60ad..94dbd5c9408 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -28,3 +28,4 @@ media-s5p-fimc-use-correct-fourcc-for-rgb565-colour-format.patch ath9k-fix-max-phy-rate-at-rate-control-init.patch iwlwifi-do-not-set-the-sequence-control-bit-is-not-needed.patch iwlwifi-allow-to-switch-to-ht40-if-not-associated.patch +memcg-keep-root-group-unchanged-if-creation-fails.patch