[DLM] keep dlm from panicing when traversing rsb list in debugfs
authorJosef Bacik <jwhiter@redhat.com>
Wed, 16 May 2007 19:56:13 +0000 (15:56 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 9 Jul 2007 07:22:29 +0000 (08:22 +0100)
commit916297aad5de2363dccd531873eda55d4d6afb57
treee8e5eabf529bd4a41d9ee225087e237581ce5ffd
parent2a87ab080607d009b8b2a8706f4e27d70402ca9c
[DLM] keep dlm from panicing when traversing rsb list in debugfs

This problem was originally reported against GFS6.1, but the same issue exists
in upstream DLM.  This patch keeps the rsb iterator assigning under the rsbtbl
list lock.  Each time we process an rsb we grab a reference to it to make sure
it is not freed out from underneath us, and then put it when we get the next rsb
in the list or move onto another list.

Signed-off-by: Josef Bacik <jwhiter@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/debug_fs.c