Skip to content

rwlock: allow recursive read locking when already locked in write mode

Roger Pau Monne xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 15 repliesIn review
  2. v21 patch 36 repliesSuperseded
  3. v11 patch 13 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2atomic: add atomic_and operationsxen/include/asm-arm/arm32/atomic.h xen/include/asm-arm/arm64/atomic.h xen/include/asm-x86/atomic.h+39 -010 replies
2/2rwlock: allow recursive read locking when already locked in write modexen/common/rwlock.c xen/include/xen/rwlock.h+34 -225 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJan BeulichJulien Grall
1/2Requested-by R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Xen-devel] [PATCH v3 0/2] rwlock: allow recursive read locking when already locked in write mode

Hello,

The following series implement support for read-locking a lock already taken in write mode by the same CPU. Patch #1 add an atomic_and operation to be used by patch #2 which implements the mentioned behavior.

The series has been build tested on Arm by gitlab:

https://gitlab.com/xen-project/people/royger/xen/pipelines/120144901

Thanks, Roger.

Roger Pau Monne (2):
atomic: add atomic_and operations
rwlock: allow recursive read locking when already locked in write mode

 xen/common/rwlock.c                |  4 +--
 xen/include/asm-arm/arm32/atomic.h | 17 ++++++++++
 xen/include/asm-arm/arm64/atomic.h | 14 ++++++++
 xen/include/asm-x86/atomic.h       |  8 +++++
 xen/include/xen/rwlock.h           | 52 ++++++++++++++++++------------
 5 files changed, 73 insertions(+), 22 deletions(-)
Signature · 7 lines
2.25.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel