public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] tighten lglock lockdep annotations
@ 2013-03-05  2:17 Michel Lespinasse
  2013-03-05  2:17 ` [PATCH 1/2] lockdep: introduce lock_acquire_exclusive/shared helper macros Michel Lespinasse
  2013-03-05  2:17 ` [PATCH 2/2] lglock: update lockdep annotations to report recursive local locks Michel Lespinasse
  0 siblings, 2 replies; 8+ messages in thread
From: Michel Lespinasse @ 2013-03-05  2:17 UTC (permalink / raw)
  To: linux-kernel, Peter Zijlstra, Ingo Molnar, Oleg Nesterov,
	Lai Jiangshan, Srivatsa S. Bhat, paulmck, Rusty Russell, rostedt,
	tglx, Andrew Morton, Andi Kleen

Oleg Nesterov recently noticed that the lockdep annotations in lglock.c
are not sufficient to detect some obvious deadlocks, such as
lg_local_lock(LOCK) + lg_local_lock(LOCK) or
spin_lock(X) + lg_local_lock(Y) vs lg_local_lock(Y) + spin_lock(X).

Both issues can be fixed by indicating to lockdep that lglock's local
locks are not recursive.

Patch 1 introduces helper macros for lockdep annotations.

Patch 2 makes sure to use the appropriate helper macros to indicate that
the lglock local lock is a shared, non-recursive lock.

Michel Lespinasse (2):
  lockdep: introduce lock_acquire_exclusive/shared helper macros
  lglock: update lockdep annotations to report recursive local locks

 include/linux/lockdep.h | 92 +++++++++++++------------------------------------
 kernel/lglock.c         | 12 +++----
 2 files changed, 29 insertions(+), 75 deletions(-)

-- 
1.8.1.3

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

end of thread, other threads:[~2013-03-05 18:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05  2:17 [PATCH 0/2] tighten lglock lockdep annotations Michel Lespinasse
2013-03-05  2:17 ` [PATCH 1/2] lockdep: introduce lock_acquire_exclusive/shared helper macros Michel Lespinasse
2013-03-05 15:19   ` Lai Jiangshan
2013-03-05 15:40     ` Michel Lespinasse
2013-03-05 17:06   ` Oleg Nesterov
2013-03-05  2:17 ` [PATCH 2/2] lglock: update lockdep annotations to report recursive local locks Michel Lespinasse
2013-03-05 17:42   ` Oleg Nesterov
2013-03-05 18:24     ` Michel Lespinasse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox