mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/1] lockdep: add support for queued rwlock
@ 2014-06-23 18:24 Waiman Long
  2014-06-23 18:25 ` [PATCH v4 1/1] lockdep: restrict the use of recursive read_lock with qrwlock Waiman Long
  0 siblings, 1 reply; 2+ messages in thread
From: Waiman Long @ 2014-06-23 18:24 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra; +Cc: linux-kernel, Scott J Norton, Waiman Long

v3->v4:
 - Document the new read state and move the conditional compilation code
   to lockdep.h.

v2->v3:
 - Add a new read mode (3) for rwlock (used in
   lock_acquire_shared_cond_recursive()) to avoid conflict with other
   use cases of lock_acquire_shared_recursive().

v1->v2:
 - Use less conditional & make it easier to read

With the merging of qrwlock into 3.16, it was found that the btrfs
filesystem hanged readily. A fix was devised and merged into rc2 and
the use of recursive read_lock call was part of the problem.

This patch addes code to the lockdep subsystem to catch this kind of
recursive read_lock calls in kernel code.

Waiman Long (1):
  lockdep: restrict the use of recursive read_lock with qrwlock

 include/linux/lockdep.h  |   12 ++++++++++++
 kernel/locking/lockdep.c |    6 ++++++
 2 files changed, 18 insertions(+), 0 deletions(-)


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

end of thread, other threads:[~2014-06-23 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-23 18:24 [PATCH v4 0/1] lockdep: add support for queued rwlock Waiman Long
2014-06-23 18:25 ` [PATCH v4 1/1] lockdep: restrict the use of recursive read_lock with qrwlock Waiman Long

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

all inboxes | Powered by JetHome®