Re: [PATCH 3/4] mm, rmap: minimize lock hold when unlink_anon_vmas

2013-08-07 Thread Joonsoo Kim
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, ite

Re: [PATCH 3/4] mm, rmap: minimize lock hold when unlink_anon_vmas

2013-08-06 Thread Johannes Weiner
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

[PATCH 3/4] mm, rmap: minimize lock hold when unlink_anon_vmas

2013-08-06 Thread Joonsoo Kim
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 diff --git a/mm/rmap.c