Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932200Ab3HGHSc (ORCPT ); Wed, 7 Aug 2013 03:18:32 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:56378 "EHLO LGEMRELSE6Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757127Ab3HGHS3 (ORCPT ); Wed, 7 Aug 2013 03:18:29 -0400 X-AuditID: 9c930179-b7c53ae000000457-91-5201f4c36e17 Date: Wed, 7 Aug 2013 16:18:32 +0900 From: Joonsoo Kim To: Johannes Weiner Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Minchan Kim , Mel Gorman , Rik van Riel , Michel Lespinasse 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> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 21 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/