From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753AbcETGU3 (ORCPT ); Fri, 20 May 2016 02:20:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:41817 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753022AbcETGU1 (ORCPT ); Fri, 20 May 2016 02:20:27 -0400 Date: Thu, 19 May 2016 23:18:24 -0700 From: Davidlohr Bueso 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 , 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: <20160520061824.GA7086@linux-uzut.site> 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; format=flowed Content-Disposition: inline In-Reply-To: <20160517110906.GW3193@twins.programming.kicks-ass.net> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 May 2016, Peter Zijlstra wrote: >Subject: locking,rwsem: Remove rwsem_atomic_add() and rwsem_atomic_update() >From: Jason Low >Date: Mon, 16 May 2016 17:38:02 -0700 > >The rwsem-xadd count has been converted to an atomic variable and the >rwsem code now directly uses atomic_long_add() and >atomic_long_add_return(), so we can remove the arch implementations of >rwsem_atomic_add() and rwsem_atomic_update(). > >Cc: Waiman Long >Cc: Heiko Carstens >Cc: Jason Low >Cc: Richard Henderson >Cc: Ingo Molnar >Cc: Fenghua Yu >Cc: Andrew Morton >Cc: Martin Schwidefsky >Cc: Linus Torvalds >Cc: Tim Chen >Cc: Christoph Lameter >Cc: Thomas Gleixner >Cc: Arnd Bergmann >Cc: Terry Rudd >Cc: Peter Hurley >Cc: Davidlohr Bueso Acked-by: Davidlohr Bueso >Cc: Ivan Kokshaysky >Cc: Tony Luck >Cc: Matt Turner >Signed-off-by: Jason Low >Signed-off-by: Peter Zijlstra (Intel) >--- > arch/alpha/include/asm/rwsem.h | 42 ----------------------------------------- > arch/ia64/include/asm/rwsem.h | 7 ------ > arch/s390/include/asm/rwsem.h | 37 ------------------------------------ > arch/x86/include/asm/rwsem.h | 18 ----------------- > include/asm-generic/rwsem.h | 16 --------------- > 5 files changed, 120 deletions(-) Nice. This, along with Michal's work getting rid of a lot of superfluous implementations, have gotten rid of plenty of rwsem code in arch/* Thanks, Davidlohr