[SSI] openssi/kernel/cluster/ssi/token msgsup.c,1.10,1.11

Roger Tsang <[email protected]> Fri, 05 Mar 2010 05:30:13 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/token
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv27136/kernel/cluster/ssi/token

Modified Files:
      Tag: OPENSSI-FC
	msgsup.c 
Log Message:
CFS Token Architecture (#ifdef RCU_MSGSUP_HASH):
- In process_msgs() optimize away hash table lookup on -EREMOTE.


Index: msgsup.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/cluster/ssi/token/msgsup.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- msgsup.c	2 Feb 2010 04:31:45 -0000	1.10
+++ msgsup.c	5 Mar 2010 05:30:11 -0000	1.11
@@ -530,13 +530,13 @@
 			    "%s: forced recursive processing\n", __FUNCTION__);
 #endif
 
-		error = TRANSPORT(&save->obj)(&save->obj, save->seq, save->op,
-				save->oldmode, save->newmode, save->agent,
-				save->start, save->len);
-		if (error == -EREMOTE) {
-			save->in_process_msgs = 0;
+		for (;;) {
+			error = TRANSPORT(&save->obj)(&save->obj, save->seq,
+					save->op, save->oldmode, save->newmode,
+					save->agent, save->start, save->len);
+			if (error != -EREMOTE)
+				break;
 			idelay(HZ);
-			continue;
 		}
 		SSI_ASSERT(!error);
 


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev