From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id CD6ED6B003D for ; Thu, 7 Jan 2010 19:28:35 -0500 (EST) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail6.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o080SX5h012671 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Fri, 8 Jan 2010 09:28:33 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 3A0B745DE66 for ; Fri, 8 Jan 2010 09:28:33 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 03D2A45DE4F for ; Fri, 8 Jan 2010 09:28:33 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id CFBA81DB8050 for ; Fri, 8 Jan 2010 09:28:32 +0900 (JST) Received: from m107.s.css.fujitsu.com (m107.s.css.fujitsu.com [10.249.87.107]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 6AD6D1DB8042 for ; Fri, 8 Jan 2010 09:28:32 +0900 (JST) Date: Fri, 8 Jan 2010 09:25:14 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() Message-Id: <20100108092514.f7555c1c.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20100108092333.1040c799.kamezawa.hiroyu@jp.fujitsu.com> References: <20100104182429.833180340@chello.nl> <20100104182813.753545361@chello.nl> <20100105054536.44bf8002@infradead.org> <20100105192243.1d6b2213@infradead.org> <1262884960.4049.106.camel@laptop> <1262900683.4049.139.camel@laptop> <20100108092333.1040c799.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: KAMEZAWA Hiroyuki Cc: Linus Torvalds , Peter Zijlstra , Christoph Lameter , Arjan van de Ven , "Paul E. McKenney" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "minchan.kim@gmail.com" , "hugh.dickins" , Nick Piggin , Ingo Molnar List-ID: On Fri, 8 Jan 2010 09:23:33 +0900 KAMEZAWA Hiroyuki wrote: > On Thu, 7 Jan 2010 14:33:50 -0800 (PST) > Linus Torvalds wrote: > > > > > > > On Thu, 7 Jan 2010, Peter Zijlstra wrote: > > > > > > I haven't yet looked at the patch, but isn't expand_stack() kinda like > > > what you want? That serializes using anon_vma_lock(). > > > > Yeah, that sounds like the right thing to do. It is the same operation, > > after all (and has the same effects, especially for the special case of > > upwards-growing stacks). > > > > So basically the idea is to extend that stack expansion to brk(), and > > possibly mmap() in general. > > > Hmm, do_brk() sometimes unmap conflicting mapping. Isn't it be a problem ? > Stack expansion just fails and SEGV if it hit with other mmaps.... Sorry please ignore the last line... Sorry for noise. -Kame -- 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