From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx196.postini.com [74.125.245.196]) by kanga.kvack.org (Postfix) with SMTP id 7A3E56B0073 for ; Wed, 7 Aug 2013 03:18:29 -0400 (EDT) Date: Wed, 7 Aug 2013 16:18:32 +0900 From: Joonsoo Kim Subject: Re: [PATCH 3/4] mm, rmap: minimize lock hold when unlink_anon_vmas Message-ID: <20130807071832.GC32449@lge.com> References: <1375778620-31593-1-git-send-email-iamjoonsoo.kim@lge.com> <1375778620-31593-3-git-send-email-iamjoonsoo.kim@lge.com> <20130807061138.GK1845@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130807061138.GK1845@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Minchan Kim , Mel Gorman , Rik van Riel , Michel Lespinasse On Wed, Aug 07, 2013 at 02:11:38AM -0400, Johannes Weiner wrote: > On Tue, Aug 06, 2013 at 05:43:39PM +0900, Joonsoo Kim wrote: > > Currently, we free the avc objects with holding a lock. To minimize > > lock hold time, we just move the avc objects to another list > > with holding a lock. Then, iterate them and free objects without holding > > a lock. This makes lock hold time minimized. > > > > Signed-off-by: Joonsoo Kim > > I expect kfree() to be fast enough that we don't think we need to > bother batching this outside the lock. Okay! Thanks. -- 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/ . Don't email: email@kvack.org