From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx188.postini.com [74.125.245.188]) by kanga.kvack.org (Postfix) with SMTP id F07738D0001 for ; Fri, 11 May 2012 17:19:46 -0400 (EDT) Date: Fri, 11 May 2012 14:19:45 -0700 From: Andrew Morton Subject: Re: [PATCH 2/6] add res_counter_uncharge_until() Message-Id: <20120511141945.c487e94c.akpm@linux-foundation.org> In-Reply-To: <4FACE01A.4040405@jp.fujitsu.com> References: <4FACDED0.3020400@jp.fujitsu.com> <4FACE01A.4040405@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , "cgroups@vger.kernel.org" , Michal Hocko , Johannes Weiner , Frederic Weisbecker , Han Ying , Glauber Costa , Tejun Heo , "Aneesh Kumar K.V" , Hiroyuki Kamezawa , Linux Kernel On Fri, 11 May 2012 18:47:06 +0900 KAMEZAWA Hiroyuki wrote: > From: Frederic Weisbecker > > At killing res_counter which is a child of other counter, > we need to do > res_counter_uncharge(child, xxx) > res_counter_charge(parent, xxx) > > This is not atomic and wasting cpu. This patch adds > res_counter_uncharge_until(). This function's uncharge propagates > to ancestors until specified res_counter. > > res_counter_uncharge_until(child, parent, xxx) > > Now, ops is atomic and efficient. > > Changelog since v2 > - removed unnecessary lines. > - Fixed 'From' , this patch comes from his series. Please signed-off-by if good. > > Signed-off-by: KAMEZAWA Hiroyuki Frederic's Signed-off-by: is unavaliable? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org