From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 2/6] add res_counter_uncharge_until() Date: Fri, 11 May 2012 14:19:45 -0700 Message-ID: <20120511141945.c487e94c.akpm@linux-foundation.org> References: <4FACDED0.3020400@jp.fujitsu.com> <4FACE01A.4040405@jp.fujitsu.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FACE01A.4040405-+CUm20s59erQFUHtdCDX3A@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: KAMEZAWA Hiroyuki Cc: "linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org" , "cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.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?