Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756800Ab0DIUFK (ORCPT ); Fri, 9 Apr 2010 16:05:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43720 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755787Ab0DIUFI (ORCPT ); Fri, 9 Apr 2010 16:05:08 -0400 Message-ID: <4BBF8815.7010309@redhat.com> Date: Fri, 09 Apr 2010 16:03:33 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: Linus Torvalds CC: Borislav Petkov , KOSAKI Motohiro , Andrew Morton , Minchan Kim , Linux Kernel Mailing List , Lee Schermerhorn , Nick Piggin , Andrea Arcangeli , Hugh Dickins , sgunderson@bigfoot.com, hannes@cmpxchg.org Subject: Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmas of a mergeable VMA References: <20100408210035.GA25834@a1.tnic> <20100408234721.GB25834@a1.tnic> <20100409013012.GA8153@liondog.tnic> <20100409092111.GA998@a1.tnic> <20100409174041.GA10780@a1.tnic> <20100409191425.GB10780@a1.tnic> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 22 On 04/09/2010 03:32 PM, Linus Torvalds wrote: > Rik? I think it's back to you. I'm not going to bother committing the > change to the anon_vma locking unless you actually need the locking > guarantees for anon_vma_prepare(). > And I've got the feeling that the proper fix is in the vma_adjust() > handling if your original idea was right. We can fix it on the other side, by changing anon_vma_merge to actually link all the anon_vma structs into the VMA. An added benefit is that we are already holding the required lock (mmap_sem) exclusively in that code path. I'll cook up a patch and I'll mail it out after a little testing. -- 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/