Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758624AbaGCPfv (ORCPT ); Thu, 3 Jul 2014 11:35:51 -0400 Received: from mail-vc0-f176.google.com ([209.85.220.176]:44766 "EHLO mail-vc0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754895AbaGCPfu (ORCPT ); Thu, 3 Jul 2014 11:35:50 -0400 MIME-Version: 1.0 In-Reply-To: References: <1404318070-2856-1-git-send-email-jason.low2@hp.com> <20140702162749.GP19379@twins.programming.kicks-ass.net> <1404320356.3170.12.camel@j-VirtualBox> <20140702172333.GQ19379@twins.programming.kicks-ass.net> <1404322203.3170.17.camel@j-VirtualBox> <1404362358.8764.6.camel@j-VirtualBox> Date: Thu, 3 Jul 2014 08:35:49 -0700 X-Google-Sender-Auth: hjJWkcTbDuYkDFMg_YQnSFgwk4s Message-ID: Subject: Re: [RFC] Cancellable MCS spinlock rework From: Linus Torvalds To: Jason Low Cc: Peter Zijlstra , Paul McKenney , Ingo Molnar , Waiman Long , Davidlohr Bueso , Linux Kernel Mailing List , Rik van Riel , Andrew Morton , Peter Anvin , Andi Kleen , Jej B , Steven Rostedt , Tim Chen , "Chandramouleeswaran, Aswin" , "Norton, Scott J" , "Vinod, Chegu" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 3, 2014 at 8:31 AM, Linus Torvalds wrote: > > I don't think we'll support 2 _billion_ processes/threads waiting on > the same semaphore any time soon, so the 'long' seems a bit of an > overkill on 64-bit architectures. Oh, never mind. The 'struct semaphore' uses it as just a plain count, but the rwsem ends up splitting up the bits for readers/writers, so we actually do want the full 64-bit value there. 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/