Re: [PATCH 1/3] memcg: fix account leak at failure of memswacconting.

From: Daisuke Nishimura
Date: Tue Jan 25 2011 - 03:38:41 EST


On Tue, 25 Jan 2011 15:00:42 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:

> This is required for 2.6.36-stable and later.
> ==
> Commit 4b53433468c87794b523e4683fbd4e8e8aca1f63 removes
> a cancel of charge at case:
> memory charge-> success.
> mem+swap charge-> failure.
>
> This leaks usage of memory. Fix it.
>
> This patch is required for stable tree since 2.6.36.
>
> CC: stable@xxxxxxxxxx
> Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

Nice catch.

Acked-by: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/