[PATCH v2 0/2] locking/rwsem: Convert rwsem count to atomic_long_t

From: Jason Low
Date: Sat Jun 04 2016 - 01:38:43 EST


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