Skip to content

locking/ww_mutex: Fix locktorture ww_mutex test problems

Waiman Long lkml 1 version Applied

Status from this message: The following commit has been merged into the locking/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 24 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handlingkernel/locking/mutex.c+14 -117 replies
2/4locking/ww_mutex: Fix acquire/release imbalance in ww_acquire_init()/ww_acquire_fini()include/linux/ww_mutex.h+3 -20 replies
3/4locking/ww_mutex: Treat ww_mutex_lock() like a trylockkernel/locking/mutex.c+4 -115 replies
4/4locking/locktorture: Fix incorrect use of ww_acquire_ctx in ww_mutex testkernel/locking/locktorture.c+56 -302 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

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

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

Read the v1 thread

Cover letter [PATCH 0/4] locking/ww_mutex: Fix locktorture ww_mutex test problems

It was found that lockdep splat was produced whenever the ww_mutex locktorture test was run on a kernel with lockdep enabled. It turns out that there are bugs both in the ww_mutex and the locktorture code. This patch series fix these bugs so that the ww_mutex locktorture test is able to run without producing unexpected lockdep splat.

Patches 1 & 2 are clean-up patches for ww_mutex. Patch 3 fixes the lockdep bug in ww_mutex and patch 4 fixes a bug in the locktorture code.

Waiman Long (4):
locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling locking/ww_mutex: Fix acquire/release imbalance in

    ww_acquire_init()/ww_acquire_fini()

locking/ww_mutex: Treat ww_mutex_lock() like a trylock locking/locktorture: Fix incorrect use of ww_acquire_ctx in ww_mutex
test

 include/linux/ww_mutex.h     |  5 ++-
 kernel/locking/locktorture.c | 86 +++++++++++++++++++++++-------------
 kernel/locking/mutex.c       | 30 ++++++++-----
 3 files changed, 77 insertions(+), 44 deletions(-)
Signature · 1 line
2.18.1