[PATCH v2 0/2] debugobjects: Fix potential hard lockup by disabling lockdep

From: Waiman Long
Date: Tue Sep 25 2018 - 10:41:45 EST


v2:
- Add a lockdep patch to fix a dmesg warning message due to the use
of the novalidate class.

The only locking used by the debugobjects code is just 2 sets of raw
spinlocks for synchronization purpose. When lockdep is enabled, the
locking operation itself will become much more expensive especially
if a number of locks have already been acquired previously. In some
extreme cases, it may lead to hard lockup.

As there isn't much value in debugging the debugobjects internal locks,
lockdep checking is now disabled for those internal locks. That will
speed up system operation without compromising the lock checking
operation of production code.

Waiman Long (2):
locking/lockdep: Don't warn class/lock name mismatch for novalidate
class
debugobjects: Disable lockdep tracking of debugobjects internal locks

kernel/locking/lockdep.c | 7 +++++--
lib/debugobjects.c | 9 ++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)

--
2.18.0