linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] debugobjects: Fix potential hard lockup by disabling lockdep
@ 2018-09-25 14:41 Waiman Long
  2018-09-25 14:41 ` [PATCH v2 1/2] locking/lockdep: Don't warn class/lock name mismatch for novalidate class Waiman Long
  2018-09-25 14:41 ` [PATCH v2 2/2] debugobjects: Disable lockdep tracking of debugobjects internal locks Waiman Long
  0 siblings, 2 replies; 8+ messages in thread
From: Waiman Long @ 2018-09-25 14:41 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Peter Zijlstra, Will Deacon
  Cc: linux-kernel, Yang Shi, Arnd Bergmann, chuhu, Waiman Long

 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-28 18:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 14:41 [PATCH v2 0/2] debugobjects: Fix potential hard lockup by disabling lockdep Waiman Long
2018-09-25 14:41 ` [PATCH v2 1/2] locking/lockdep: Don't warn class/lock name mismatch for novalidate class Waiman Long
2018-09-25 14:41 ` [PATCH v2 2/2] debugobjects: Disable lockdep tracking of debugobjects internal locks Waiman Long
2018-09-25 15:32   ` Peter Zijlstra
2018-09-25 16:20     ` Waiman Long
2018-09-25 16:31       ` Peter Zijlstra
2018-09-25 16:36         ` Waiman Long
2018-09-28 18:33           ` Waiman Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).