Skip to content

debugobjects: Fix potential hard lockup by disabling lockdep

Waiman Long lkml 1 version NAK

Status from this message: NAK, we do not _EVER_ set novalidate if it can at all be avoided.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesNAK

Changes in v2 from the cover letter

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

Patches in v2

#Subject and filesSizeRepliesApplied
1/2locking/lockdep: Don't warn class/lock name mismatch for novalidate classkernel/locking/lockdep.c+5 -20 replies
2/2debugobjects: Disable lockdep tracking of debugobjects internal lockslib/debugobjects.c+8 -15 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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(-)
Signature · 1 line
2.18.0