From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751990AbcEQApq (ORCPT ); Mon, 16 May 2016 20:45:46 -0400 Received: from g2t4625.austin.hp.com ([15.73.212.76]:54048 "EHLO g2t4625.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbcEQApp (ORCPT ); Mon, 16 May 2016 20:45:45 -0400 From: Jason Low To: Peter Zijlstra , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Andrew Morton , Richard Henderson , Linus Torvalds , 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: [RFC][PATCH 0/7] locking/rwsem: Convert rwsem count to atomic_long_t Date: Mon, 16 May 2016 17:37:59 -0700 Message-Id: <1463445486-16078-1-git-send-email-jason.low2@hpe.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch contains an optimization for acquiring the rwsem write lock in the slowpath. 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. 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 ------------- include/linux/rwsem.h | 6 ++--- kernel/locking/rwsem-xadd.c | 54 ++++++++++++++++++++++++++---------------- 7 files changed, 36 insertions(+), 144 deletions(-) -- 2.1.4