Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400409

[PATCH v3 0/4] locking/rwsem: Add reader-owned state to the owner field

From Waiman Long <Waiman.Long@hpe.com>
Newsgroups linux.kernel
Subject [PATCH v3 0/4] locking/rwsem: Add reader-owned state to the owner field
Date 2016-05-13 01:00 +0200
Message-ID <ry7Kh-7bF-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


 v2->v3:
  - Make minor code changes as suggested by PeterZ & Peter Hurley.
  - Add 2 minor patches (#2 & #3) to improve the rwsem code
  - Add a 4th patch to streamline the rwsem_optimistic_spin() code.

 v1->v2:
  - Add rwsem_is_reader_owned() helper & rename rwsem_reader_owned()
    to rwsem_set_reader_owned().
  - Add more comments to clarify the purpose of some of the code
    changes.

Patch 1 is the main patch of this series, whereas patches 2 & 3 are
just minor patches to improve the efficiency of the rwsem code. Patch
4 streamlines the rwsem_optimistic_spin() to make it simpler.

Waiman Long (4):
  locking/rwsem: Add reader-owned state to the owner field
  locking/rwsem: Don't wake up one's own task
  locking/rwsem: Improve reader wakeup code
  locking/rwsem: Streamline the rwsem_optimistic_spin() code

 kernel/locking/rwsem-xadd.c |   75 ++++++++++++++++++++++++------------------
 kernel/locking/rwsem.c      |    8 +++-
 kernel/locking/rwsem.h      |   41 +++++++++++++++++++++++
 3 files changed, 90 insertions(+), 34 deletions(-)

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/4] locking/rwsem: Add reader-owned state to the owner field Waiman Long <Waiman.Long@hpe.com> - 2016-05-13 01:00 +0200
  [PATCH v3 2/4] locking/rwsem: Don't wake up one's own task Waiman Long <Waiman.Long@hpe.com> - 2016-05-13 01:00 +0200
    Re: [PATCH v3 2/4] locking/rwsem: Don't wake up one's own task Peter Hurley <peter@hurleysoftware.com> - 2016-05-17 19:50 +0200

csiph-web