From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Wed, 06 Jun 2007 11:03:51 +0100 Subject: [Cluster-devel] [PATCH][DLM] fix reference counting In-Reply-To: <20070605213637.GD28363@korben.rdu.redhat.com> References: <20070605213637.GD28363@korben.rdu.redhat.com> Message-ID: <1181124231.25918.203.camel@quoit> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the -nmw git tree. Thanks, Steve. On Tue, 2007-06-05 at 17:36 -0400, Josef Bacik wrote: > Hello, > > 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 > > diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c > index 184be98..9f5de37 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 > 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); > } >