aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorJosef Bacik <jwhiter@redhat.com>2007-06-05 17:36:38 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-07-09 03:23:15 -0400
commit292e539e9386823df8aab556f3da09667f78da8c (patch)
tree1a4f5354b7f4cf006503885a44273550c482459d /fs/dlm
parent4bd91ba18198eee42c39d4c334c825d1a0a4b445 (diff)
[DLM] fix reference counting
This is a fix for the patch 021d2ff3a08019260a1dc002793c92d6bf18afb6 I left off a dlm_hold_rsb which causes the box to panic if you try to use debugfs. This patch fixes the problem. Sorry about that, Signed-off-by: Josef Bacik <jwhiter@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/debug_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 184be9870c63..9f5de37706a9 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -250,6 +250,7 @@ static int rsb_iter_next(struct rsb_iter *ri)
250 goto top; 250 goto top;
251 } 251 }
252 ri->rsb = list_entry(ri->next, struct dlm_rsb, res_hashchain); 252 ri->rsb = list_entry(ri->next, struct dlm_rsb, res_hashchain);
253 dlm_hold_rsb(ri->rsb);
253 read_unlock(&ls->ls_rsbtbl[i].lock); 254 read_unlock(&ls->ls_rsbtbl[i].lock);
254 dlm_put_rsb(old); 255 dlm_put_rsb(old);
255 } 256 }