[DLM] dumping master locks
authorDavid Teigland <teigland@redhat.com>
Tue, 29 May 2007 13:47:04 +0000 (08:47 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:22:56 +0000 (08:22 +0100)
commit9dd592d70be0db6fa8e4e19d7642cfaa424b200e
tree6694d26986949a0bc8aac3895c7b61f94af97452
parent8b4021fa436f7c76a2299e6d85d4d4a619724e9a
[DLM] dumping master locks

Add a new debugfs file that dumps a compact list of mastered locks.
This will be used by a userland daemon to collect state for deadlock
detection.

Also, for the existing function that prints all lock state, lock the rsb
before going through the lock lists since they can be changing in the
course of normal dlm activity.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/debug_fs.c
fs/dlm/dlm_internal.h