Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753778Ab0AGTZQ (ORCPT ); Thu, 7 Jan 2010 14:25:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753602Ab0AGTZP (ORCPT ); Thu, 7 Jan 2010 14:25:15 -0500 Received: from nlpi129.sbcis.sbc.com ([207.115.36.143]:56012 "EHLO nlpi129.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113Ab0AGTZN (ORCPT ); Thu, 7 Jan 2010 14:25:13 -0500 Date: Thu, 7 Jan 2010 13:24:33 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Linus Torvalds 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 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> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 835 Lines: 29 On Thu, 7 Jan 2010, Linus Torvalds wrote: > + if (brk < cur_brk) > + goto slow_case; > + if (brk == cur_brk) > + goto out; > + > + vma = ok_to_extend_brk(mm, cur_brk, brk); > + if (!vma) > + goto slow_case; > + > + spin_lock(&mm->page_table_lock); 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. 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. -- 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/