Skip to content

RFC locking/ww_mutex, dma-buf/dma-resv: Improve detection of unheld locks

Thomas Hellström dri-devel intel-xe lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kernel/locking/ww_mutex: Add per-lock lock-check helpersinclude/linux/ww_mutex.h kernel/locking/mutex.c+28 -01 reply
2/2dma-buf/dma-resv: Improve the dma-resv lockdep checksinclude/linux/dma-resv.h+5 -21 reply

Reviews trailers per patch

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

PatchChristian König
1/2
2/2R-b

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] locking/ww_mutex, dma-buf/dma-resv: Improve detection of unheld locks

WW mutexes and dma-resv objects, which embed them, typically have a number of locks belocking to the same lock class. However code using them typically want to verify the locking on object granularity, not lock-class granularity.

This series add ww_mutex functions to facilitate that, (patch 1) and utilizes these functions in the dma-resv lock checks.

Thomas Hellström (2):
kernel/locking/ww_mutex: Add per-lock lock-check helpers dma-buf/dma-resv: Improve the dma-resv lockdep checks

 include/linux/dma-resv.h |  7 +++++--
 include/linux/ww_mutex.h | 18 ++++++++++++++++++
 kernel/locking/mutex.c   | 10 ++++++++++
 3 files changed, 33 insertions(+), 2 deletions(-)
Signature · 1 line
2.51.1