Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755276Ab3I3QmL (ORCPT ); Mon, 30 Sep 2013 12:42:11 -0400 Received: from merlin.infradead.org ([205.233.59.134]:46598 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979Ab3I3QmH (ORCPT ); Mon, 30 Sep 2013 12:42:07 -0400 Date: Mon, 30 Sep 2013 18:41:41 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Ingo Molnar , Waiman Long , Ingo Molnar , Andrew Morton , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Tim Chen , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Subject: Re: [PATCH] rwsem: reduce spinlock contention in wakeup code path Message-ID: <20130930164141.GH3081@twins.programming.kicks-ass.net> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <20130928192123.GA8228@gmail.com> <20130930104408.GW3081@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1075 Lines: 25 On Mon, Sep 30, 2013 at 09:13:52AM -0700, Linus Torvalds wrote: > So unlike a lot of other "let's try to make our locking fancy" that I > dislike because it tends to hide the fundamental problem of > contention, the rwlock patches make me go "those actually _fix_ a > fundamental problem". So here I'm slightly disagreeing; fixing a fundamental problem would be coming up a better anon_vma management that doesn't create such immense chains. Its still the same lock, spinlock or not. And regardless of if we keep anon_vma lock a rwsem or not; I think we should merge those rwsem patches as they do improve the lock implementation and the hard work has already been done. However the biggest ugly by far here is that mm_take_all_locks() thing; couldn't we implement that by basically freezing all tasks referencing that mm? -- 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/