mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] locking/rwsem: Convert rwsem count to atomic_long_t
@ 2016-06-04  5:26 Jason Low
  2016-06-04  5:26 ` [PATCH v2 1/2] locking/rwsem: Convert sem->count " Jason Low
  2016-06-04  5:26 ` [PATCH v2 2/2] Remove rwsem_atomic_add() and rwsem_atomic_update() Jason Low
  0 siblings, 2 replies; 4+ messages in thread
From: Jason Low @ 2016-06-04  5:26 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar
  Cc: linux-kernel, 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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-08 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-04  5:26 [PATCH v2 0/2] locking/rwsem: Convert rwsem count to atomic_long_t Jason Low
2016-06-04  5:26 ` [PATCH v2 1/2] locking/rwsem: Convert sem->count " Jason Low
2016-06-08 14:24   ` [tip:locking/core] locking/rwsem: Convert sem->count to 'atomic_long_t' tip-bot for Jason Low
2016-06-04  5:26 ` [PATCH v2 2/2] Remove rwsem_atomic_add() and rwsem_atomic_update() Jason Low

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®