From: Jason Low <jason.low2@hpe.com>
To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Tony Luck <tony.luck@intel.com>,
Fenghua Yu <fenghua.yu@intel.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Terry Rudd <terry.rudd@hpe.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Thomas Gleixner <tglx@linutronix.de>,
Davidlohr Bueso <dave@stgolabs.net>,
Waiman Long <Waiman.Long@hpe.com>,
Tim Chen <tim.c.chen@linux.intel.com>,
Peter Hurley <peter@hurleysoftware.com>,
Jason Low <jason.low2@hp.com>
Subject: [PATCH v2 0/2] locking/rwsem: Convert rwsem count to atomic_long_t
Date: Fri, 3 Jun 2016 22:26:01 -0700 [thread overview]
Message-ID: <1465017963-4839-1-git-send-email-jason.low2@hpe.com> (raw)
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
next reply other threads:[~2016-06-04 5:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-04 5:26 Jason Low [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465017963-4839-1-git-send-email-jason.low2@hpe.com \
--to=jason.low2@hpe.com \
--cc=Waiman.Long@hpe.com \
--cc=akpm@linux-foundation.org \
--cc=dave@stgolabs.net \
--cc=fenghua.yu@intel.com \
--cc=heiko.carstens@de.ibm.com \
--cc=jason.low2@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peter@hurleysoftware.com \
--cc=peterz@infradead.org \
--cc=schwidefsky@de.ibm.com \
--cc=terry.rudd@hpe.com \
--cc=tglx@linutronix.de \
--cc=tim.c.chen@linux.intel.com \
--cc=tony.luck@intel.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®