[Ocfs2-commits] smushran commits r2986 -
branches/ocfs2-1.2/fs/ocfs2/dlm
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Mar 12 15:24:52 PDT 2007
Author: smushran
Date: 2007-03-12 15:24:52 -0700 (Mon, 12 Mar 2007)
New Revision: 2986
Modified:
branches/ocfs2-1.2/fs/ocfs2/dlm/dlmthread.c
Log:
ocfs2_dlm: Missing get/put lockres in dlm_run_purge_lockres
dlm_run_purge_list was missing a dlm_lockres_get before calling dlm_purge_lockres
Signed-off-by: mfasheh
Modified: branches/ocfs2-1.2/fs/ocfs2/dlm/dlmthread.c
===================================================================
--- branches/ocfs2-1.2/fs/ocfs2/dlm/dlmthread.c 2007-03-12 22:17:13 UTC (rev 2985)
+++ branches/ocfs2-1.2/fs/ocfs2/dlm/dlmthread.c 2007-03-12 22:24:52 UTC (rev 2986)
@@ -266,8 +266,10 @@
/* This may drop and reacquire the dlm spinlock if it
* has to do migration. */
mlog(0, "calling dlm_purge_lockres!\n");
+ dlm_lockres_get(lockres);
if (dlm_purge_lockres(dlm, lockres))
BUG();
+ dlm_lockres_put(lockres);
mlog(0, "DONE calling dlm_purge_lockres!\n");
/* Avoid adding any scheduling latencies */
More information about the Ocfs2-commits
mailing list