Skip to content

locking/rwsem: Miscellaneous rwsem enhancements

Waiman Long lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Break out some code refactoring into a separate patch.
- Move the early handoff code from rwsem_wake() to rwsem_mark_wake() to cover all wakeup conditions as suggested by PeterZ.
- Simplify the all reader wake up patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3locking/rwsem: Minor code refactoring in rwsem_mark_wake()kernel/locking/rwsem.c+22 -220 replies
2/3locking/rwsem: Enable early rwsem writer lock handoffkernel/locking/lock_events_list.h kernel/locking/rwsem.c+64 -84 replies
3/3locking/rwsem: Wake up all readers for wait queue wakerkernel/locking/rwsem.c+14 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH-tip v2 0/3] locking/rwsem: Miscellaneous rwsem enhancements

v2:
- Break out some code refactoring into a separate patch.
- Move the early handoff code from rwsem_wake() to rwsem_mark_wake() to cover all wakeup conditions as suggested by PeterZ.
- Simplify the all reader wake up patch.

The second patch in this series is similar to patch 4 of the v7 patch series [1]. So it should provide similar performance benefit. Patch 3 is another minor enhancement about reader wakeup for some specific use cases.

[1] https://lore.kernel.org/lkml/[email protected]/

Waiman Long (3):
locking/rwsem: Minor code refactoring in rwsem_mark_wake() locking/rwsem: Enable early rwsem writer lock handoff locking/rwsem: Wake up all readers for wait queue waker

 kernel/locking/lock_events_list.h |   1 +
 kernel/locking/rwsem.c            | 133 ++++++++++++++++++++++--------
 2 files changed, 99 insertions(+), 35 deletions(-)
Signature · 1 line
2.31.1