Skip to content

Commit

Permalink
[DLM] fix reference counting
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
  • Loading branch information
Josef Bacik authored and swhiteho committed Jul 9, 2007
1 parent 4bd91ba commit 292e539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/dlm/debug_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ static int rsb_iter_next(struct rsb_iter *ri)
goto top;
}
ri->rsb = list_entry(ri->next, struct dlm_rsb, res_hashchain);
dlm_hold_rsb(ri->rsb);
read_unlock(&ls->ls_rsbtbl[i].lock);
dlm_put_rsb(old);
}
Expand Down

0 comments on commit 292e539

Please sign in to comment.