From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 0B340600580 for ; Thu, 7 Jan 2010 15:09:11 -0500 (EST) Date: Thu, 7 Jan 2010 12:08:25 -0800 (PST) From: Linus Torvalds Subject: Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() In-Reply-To: Message-ID: References: <20100104182429.833180340@chello.nl> <20100104182813.753545361@chello.nl> <20100105054536.44bf8002@infradead.org> <20100105192243.1d6b2213@infradead.org> <1262884960.4049.106.camel@laptop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Christoph Lameter Cc: Peter Zijlstra , Arjan van de Ven , "Paul E. McKenney" , KAMEZAWA Hiroyuki , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "minchan.kim@gmail.com" , "hugh.dickins" , Nick Piggin , Ingo Molnar List-ID: On Thu, 7 Jan 2010, Christoph Lameter wrote: > > page_table_lock used to serialize multiple fast brks? > > CONFIG_SPLIT_PTLOCK implies that code will not use this lock in fault > handling. So no serialization with faults. Correct. The faults we do not need to serialize with. It doesn't matter whether they see the old or the new end. > Also the current code assumes vm_end and so on to be stable if mmap_sem is > held. F.e. find_vma() from do_fault is now running while vm_end may be changing > under it. Again, it doesn't matter. Old or new - if some other thread looks up the vma, either is fine. Linus -- 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