Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932124Ab3HGGLp (ORCPT ); Wed, 7 Aug 2013 02:11:45 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:52388 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757077Ab3HGGLo (ORCPT ); Wed, 7 Aug 2013 02:11:44 -0400 Date: Wed, 7 Aug 2013 02:11:38 -0400 From: Johannes Weiner To: Joonsoo Kim Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Joonsoo Kim , 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: <20130807061138.GK1845@cmpxchg.org> References: <1375778620-31593-1-git-send-email-iamjoonsoo.kim@lge.com> <1375778620-31593-3-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1375778620-31593-3-git-send-email-iamjoonsoo.kim@lge.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 724 Lines: 15 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. -- 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/