[Ocfs2-commits] khackel commits r2657 - trunk/fs/ocfs2/dlm
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Oct 14 20:00:37 CDT 2005
Author: khackel
Signed-off-by: mfasheh
Date: 2005-10-14 20:00:36 -0500 (Fri, 14 Oct 2005)
New Revision: 2657
Modified:
trunk/fs/ocfs2/dlm/dlmrecovery.c
Log:
* fixes a bug that occurred shortly after recovery where the next access of a
recovered lockres would have a refcount one-too-low while running the queues
Signed-off-by: mfasheh
Modified: trunk/fs/ocfs2/dlm/dlmrecovery.c
===================================================================
--- trunk/fs/ocfs2/dlm/dlmrecovery.c 2005-10-15 00:55:09 UTC (rev 2656)
+++ trunk/fs/ocfs2/dlm/dlmrecovery.c 2005-10-15 01:00:36 UTC (rev 2657)
@@ -1101,6 +1101,10 @@
res->state &= ~DLM_LOCK_RES_IN_PROGRESS;
spin_unlock(&res->spinlock);
+ /* add an extra ref for just-allocated lockres
+ * otherwise the lockres will be purged immediately */
+ dlm_lockres_get(res);
+
}
/* at this point we have allocated everything we need,
More information about the Ocfs2-commits
mailing list