From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750933AbcFDFij (ORCPT ); Sat, 4 Jun 2016 01:38:39 -0400 Received: from g1t6214.austin.hp.com ([15.73.96.122]:59250 "EHLO g1t6214.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750748AbcFDFii (ORCPT ); Sat, 4 Jun 2016 01:38:38 -0400 From: Jason Low To: Peter Zijlstra , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , Tony Luck , Fenghua Yu , Martin Schwidefsky , Terry Rudd , Heiko Carstens , Thomas Gleixner , Davidlohr Bueso , Waiman Long , Tim Chen , Peter Hurley , Jason Low Subject: [PATCH v2 0/2] locking/rwsem: Convert rwsem count to atomic_long_t Date: Fri, 3 Jun 2016 22:26:01 -0700 Message-Id: <1465017963-4839-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 v1->v2: - Also convert sem->count usages in arch/{alph,ia64}/include/asm/rwsem.h to be used as atomic_long_t. - Merge the patches to remove rwsem_atomic_add() and rwsem_atomic_update() across the various architectures into one patch. This 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. Jason Low (2): locking/rwsem: Convert sem->count to atomic_long_t Remove rwsem_atomic_add() and rwsem_atomic_update() arch/alpha/include/asm/rwsem.h | 68 ++++++++---------------------------------- arch/ia64/include/asm/rwsem.h | 31 ++++++++----------- arch/s390/include/asm/rwsem.h | 37 ----------------------- arch/x86/include/asm/rwsem.h | 18 ----------- include/asm-generic/rwsem.h | 22 ++------------ include/linux/rwsem.h | 6 ++-- kernel/locking/rwsem-xadd.c | 32 ++++++++++---------- 7 files changed, 48 insertions(+), 166 deletions(-) -- 2.1.4