Skip to content

locking/rwsem: Add DEBUG_RWSEMS & restructure lock debugging menu

Waiman Long linux-nfs lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 2 repliesIn review
  2. v42 patches 6 repliesSuperseded
  3. v32 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch5 repliesSuperseded
v11 patch1 replySuperseded

Changes in v5 from the cover letter

- Break patch 2 into 2 separate patches to make them easier to review.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatcheskernel/locking/rwsem.c kernel/locking/rwsem.h lib/Kconfig.debug+19 -12 replies
2/3lib/Kconfig.debug: Add LOCK_DEBUGGING_SUPPORT to make it more readablelib/Kconfig.debug+10 -50 replies
3/3lib/Kconfig.debug: Restructure the lock debugging menulib/Kconfig.debug+68 -670 replies

Reviews trailers per patch

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

PatchDavidlohr Bueso
1/3A-b
2/3A-b
3/3A-b

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

Read the v5 thread

Cover letter [PATCH v5 0/3] locking/rwsem: Add DEBUG_RWSEMS & restructure lock debugging menu

v5:
- Break patch 2 into 2 separate patches to make them easier to review.

v4:
- Auto select DEBUG_RWSEMS & DEBUG_WW_MUTEX_SLOWPATH if PROVE_LOCKING
- Modify patch 2 to do a restructuring of the lock debugging menu.

v3:
- Add a new patch which adds a master LOCK_DEBUGGING option to turn on all lock debugging.

v2:
- Fix typo in up_read_non_owner().

This patchset enhances lock debugging by adding rwsem lock/unlock mismatches checking and restructure the lock debugging menu to make it easier to select options that are likely to be most frequently used.

Waiman Long (3):
locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches lib/Kconfig.debug: Add LOCK_DEBUGGING_SUPPORT to make it more readable lib/Kconfig.debug: Restructure the lock debugging menu

 kernel/locking/rwsem.c |   4 ++
 kernel/locking/rwsem.h |   8 ++-
 lib/Kconfig.debug      | 150 +++++++++++++++++++++++++++----------------------
 3 files changed, 93 insertions(+), 69 deletions(-)
Signature · 1 line
1.8.3.1