[Ocfs2-commits] mfasheh commits r1871 - trunk/fs/ocfs2/dlm

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Jan 31 17:49:29 CST 2005


Author: mfasheh
Date: 2005-01-31 17:49:27 -0600 (Mon, 31 Jan 2005)
New Revision: 1871

Modified:
   trunk/fs/ocfs2/dlm/dlmmod.c
   trunk/fs/ocfs2/dlm/dlmunlock.c
Log:
* We need to kick the dlm thread when dropping locks.



Modified: trunk/fs/ocfs2/dlm/dlmmod.c
===================================================================
--- trunk/fs/ocfs2/dlm/dlmmod.c	2005-01-31 21:54:08 UTC (rev 1870)
+++ trunk/fs/ocfs2/dlm/dlmmod.c	2005-01-31 23:49:27 UTC (rev 1871)
@@ -356,6 +356,11 @@
 			  data, lksb->status);
 		(*unlockast)(data, lksb->status);
 	}
+
+	if (status == DLM_NORMAL) {
+		dlmprintk("kicking the thread\n");
+		dlm_kick_thread(dlm, res);
+	}
 	dlmprintk("returning status=%d!\n", status);
 	return status;
 }

Modified: trunk/fs/ocfs2/dlm/dlmunlock.c
===================================================================
--- trunk/fs/ocfs2/dlm/dlmunlock.c	2005-01-31 21:54:08 UTC (rev 1870)
+++ trunk/fs/ocfs2/dlm/dlmunlock.c	2005-01-31 23:49:27 UTC (rev 1871)
@@ -327,6 +327,8 @@
 	if (flags & LKM_PUT_LVB)
 		lksb->flags &= ~DLM_LKSB_PUT_LVB;
 
+	dlm_kick_thread(dlm, res);
+
 not_found:
 	if (!found)
 		dlmprintk("failed to find lock to unlock!  cookie=%llu\n", 



More information about the Ocfs2-commits mailing list