Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932374AbaJXRI5 (ORCPT ); Fri, 24 Oct 2014 13:08:57 -0400 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:33622 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756211AbaJXRIz (ORCPT ); Fri, 24 Oct 2014 13:08:55 -0400 Date: Fri, 24 Oct 2014 12:08:50 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Peter Zijlstra cc: Linus Torvalds , Paul McKenney , Thomas Gleixner , Andrew Morton , Rik van Riel , Mel Gorman , Oleg Nesterov , Ingo Molnar , Minchan Kim , KAMEZAWA Hiroyuki , Al Viro , Lai Jiangshan , Davidlohr Bueso , Linux Kernel Mailing List , linux-mm Subject: Re: [RFC][PATCH 4/6] SRCU free VMAs In-Reply-To: <20141024155101.GE21513@worktop.programming.kicks-ass.net> Message-ID: References: <20141020215633.717315139@infradead.org> <20141020222841.419869904@infradead.org> <20141021080740.GJ23531@worktop.programming.kicks-ass.net> <20141024155101.GE21513@worktop.programming.kicks-ass.net> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Oct 2014, Peter Zijlstra wrote: > The hold time isn't relevant, in fact breaking up the mmap_sem such that > we require multiple acquisitions will just increase the cacheline > bouncing. Well this wont be happening anymore once you RCUify the stuff. If you go to sleep then its best to release mmap_sem and then the bouncing wont matter. Dropping mmap_sem there will also expose you to races you will see later too when you RCUify the code paths. That way those can be deal with beforehand. > Also I think it makes more sense to continue an entire fault operation, > including blocking, if at all possible. Every retry will just waste more > time. Ok then dont retry. Just drop mmap_sem before going to sleep. When you come back evaluate the situation and if we can proceed do so otherwise retry. -- 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/