[Ocfs2-commits] mfasheh commits r1615 - branches/dlm-glue/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Nov 1 20:20:04 CST 2004


Author: mfasheh
Date: 2004-11-01 20:20:02 -0600 (Mon, 01 Nov 2004)
New Revision: 1615

Modified:
   branches/dlm-glue/src/dlmglue.c
Log:
* place a check for a race condition which I think might exist for
  inodes being removed from the inode cache.



Modified: branches/dlm-glue/src/dlmglue.c
===================================================================
--- branches/dlm-glue/src/dlmglue.c	2004-11-02 01:58:22 UTC (rev 1614)
+++ branches/dlm-glue/src/dlmglue.c	2004-11-02 02:20:02 UTC (rev 1615)
@@ -1405,7 +1405,11 @@
 {
 	ocfs_super *osb = OCFS2_SB(inode->i_sb);
 
-	atomic_inc(&inode->i_count);
+	if (!igrab(inode)) {
+		LOG_ERROR_ARGS("Inode %llu asked to be scheduled during "
+			       "clear_inode!\n", OCFS_I(inode)->ip_blkno);
+		return;
+	}
 
 	spin_lock(&osb->vote_task_lock);
 	if (list_empty(&(OCFS_I(inode)->ip_blocked_list)))



More information about the Ocfs2-commits mailing list