[PATCH 0/2] locking/lockdep: Support dynamic lockdep keys
From: Bart Van Assche
Date: Fri Nov 09 2018 - 18:47:08 EST
Hi Ingo,
As you may know some false positive lockdep reports are the result of the
requirement to associate the same static lockdep key with all instances
of a locking object. Recently I encountered a lockdep false positive for
which I found no elegant way to suppress it other than by modifying the
lockdep implementation. Hence this series with two patches: one that
modifies lockdep and another patch that shows the false positive I and
others ran into and that also shows how to suppress that false positive.
Please keep in mind that I'm not a lockdep expert and hence that I'm not
sure whether the approach of patch 1/2 is correct.
Thanks,
Bart.
Bart Van Assche (2):
locking/lockdep: Add support for dynamic depmaps and keys
kernel/workqueue: Use dynamic lockdep keys for workqueues
include/linux/lockdep.h | 2 ++
include/linux/workqueue.h | 28 ++++-------------------
kernel/locking/lockdep.c | 16 ++++++++++---
kernel/workqueue.c | 48 ++++++++++++++++++++++++++++++++-------
4 files changed, 59 insertions(+), 35 deletions(-)
--
2.19.1.930.g4563a0d9d0-goog