From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbcFCIE6 (ORCPT ); Fri, 3 Jun 2016 04:04:58 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33175 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbcFCIEy (ORCPT ); Fri, 3 Jun 2016 04:04:54 -0400 Date: Fri, 3 Jun 2016 10:04:07 +0200 From: Ingo Molnar To: Peter Zijlstra Cc: Linus Torvalds , Jason Low , Ingo Molnar , Linux Kernel Mailing List , Andrew Morton , Richard Henderson , Ivan Kokshaysky , Matt Turner , Tony Luck , Fenghua Yu , Martin Schwidefsky , Terry Rudd , Heiko Carstens , Thomas Gleixner , Arnd Bergmann , Christoph Lameter , Davidlohr Bueso , Waiman Long , Tim Chen , Peter Hurley , Jason Low Subject: Re: [RFC][PATCH 0/7] locking/rwsem: Convert rwsem count to atomic_long_t Message-ID: <20160603080407.GA12056@gmail.com> References: <1463445486-16078-1-git-send-email-jason.low2@hpe.com> <20160517110906.GW3193@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160517110906.GW3193@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra wrote: > On Mon, May 16, 2016 at 06:12:25PM -0700, Linus Torvalds wrote: > > On Mon, May 16, 2016 at 5:37 PM, Jason Low wrote: > > > > > > This rest of the series converts the rwsem count variable to an atomic_long_t > > > since it is used it as an atomic variable. This allows us to also remove > > > the rwsem_atomic_{add,update} abstraction and reduce 100+ lines of code. > > > > I would suggest you merge all the "remove rwsem_atomic_{add,update}" > > patches into a single patch. > > > > I don't see the advantage to splitting those up by architecture, and > > it does add noise to the series. > > > > Other than that it all looks fine to me. > > OK, done. > > --- > Subject: locking,rwsem: Remove rwsem_atomic_add() and rwsem_atomic_update() > From: Jason Low > Date: Mon, 16 May 2016 17:38:02 -0700 So I tried to pick up this series, and it broke the Alpha and IA64 builds: /home/mingo/tip/arch/ia64/include/asm/rwsem.h: In function '___down_write': /home/mingo/tip/arch/ia64/include/asm/rwsem.h:58:7: error: incompatible types when assigning to type 'long int' from type 'atomic_long_t' old = sem->count; ^ home/mingo/tip/arch/alpha/include/asm/rwsem.h: In function '__down_read': /home/mingo/tip/arch/alpha/include/asm/rwsem.h:28:11: error: incompatible types when assigning to type 'long int' from type 'atomic_long_t' oldcount = sem->count; ^ etc. btw., for some reason I don't have the mails from Jason in my mbox, perhaps GMail spam filtering ate it? Thanks, Ingo