Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755733Ab3I3RZO (ORCPT ); Mon, 30 Sep 2013 13:25:14 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:33644 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755660Ab3I3RZL (ORCPT ); Mon, 30 Sep 2013 13:25:11 -0400 MIME-Version: 1.0 In-Reply-To: <20130930100351.7843a62b.akpm@linux-foundation.org> References: <1380308424-31011-1-git-send-email-Waiman.Long@hp.com> <20130928074144.GA17773@gmail.com> <20130928192123.GA8228@gmail.com> <20130928193739.GA8642@gmail.com> <20130928195207.GA31245@gmail.com> <20130930100351.7843a62b.akpm@linux-foundation.org> Date: Mon, 30 Sep 2013 10:25:10 -0700 X-Google-Sender-Auth: GCMh_i8-8UgeO54wcGbcmroZNJ8 Message-ID: Subject: Re: [PATCH, v2] anon_vmas: Convert the rwsem to an rwlock_t From: Linus Torvalds To: Andrew Morton Cc: Ingo Molnar , Waiman Long , Ingo Molnar , Linux Kernel Mailing List , Rik van Riel , Peter Hurley , Davidlohr Bueso , Alex Shi , Tim Chen , Peter Zijlstra , Andrea Arcangeli , Matthew R Wilcox , Dave Hansen , Michel Lespinasse , Andi Kleen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 27 On Mon, Sep 30, 2013 at 10:03 AM, Andrew Morton wrote: > > Let's convince ourselves that we won't be undoing things which will > return to bite us? Umm. We call them regressions, and we fix them. As already mentioned, the original switch to a mutex didn't even have any good explanation for it, much less actual data. When we make mistakes, we'd better realize it and fix them, rather than assume that they were fixes just because they were made. The performance numbers are pretty damn compelling for this having been a major mistake. (Of course, the current performance numbers also contain the conversion to a rwlock_t rather than back to a spinlock, which may actually help wrt the original situation too) Linus -- 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/