[SSI] openssi/kernel/cluster/ssi/cfs inode.c,1.70,1.71

Roger Tsang <[email protected]> Mon, 17 Jan 2011 07:04:20 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/cfs
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv1948/cluster/ssi/cfs

Modified Files:
      Tag: OPENSSI-FC
	inode.c 
Log Message:
__cfs_revalidate_inode: add memory barrier to ensure other processors see ~CFS_INO_REVALIDATING change to CFS_FLAGS(). fix possible hang in cfs_wait_on_inode().


Index: inode.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/cfs/inode.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- inode.c	15 Dec 2010 08:06:15 -0000	1.70
+++ inode.c	17 Jan 2011 07:04:18 -0000	1.71
@@ -1215,8 +1215,12 @@
 	CFS_FLAGS(inode) &= ~CFS_INO_REVALIDATING;
 	UNLOCK_COND_LOCK(&itoc(inode)->c_statelock);
 
+#ifdef CFS_FLAGS_BITOPS
+	cfs_wake_up_inode();
+#else
+	smp_mb(); /* ensure other processors see ~CFS_INO_REVALIDATING */
 	wake_up(&(itoc(inode)->c_i_wait));
-	/* cfs_wake_up_inode() */
+#endif
 out_nowait:
 	return status;
 }


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl