[Pvfs2-cvs] commit by slang in pvfs2/src/io/bmi/bmi_mx: mx.c

CVS commit program cvs at parl.clemson.edu
Wed Jul 18 12:33:34 EDT 2007


Update of /projects/cvsroot/pvfs2/src/io/bmi/bmi_mx
In directory parlweb1:/tmp/cvs-serv12815/src/io/bmi/bmi_mx

Modified Files:
	mx.c 
Log Message:
add an extra check to allow test to be called repeatedly with a zero timeout as long as requests are completing.


Index: mx.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_mx/mx.c,v
diff -p -u -r1.2 -r1.3
--- mx.c	18 Jul 2007 07:02:32 -0000	1.2
+++ mx.c	18 Jul 2007 16:33:34 -0000	1.3
@@ -2340,7 +2340,7 @@ BMI_mx_testcontext(int incount, bmi_op_i
 			if(wait == 0 || wait == 2)
 			{
 			    mx_test_any(bmi_mx->bmx_ep, match, mask, &status, &result);
-			    if(!result && wait == 0) wait = 1;
+			    if(!result && wait == 0 && max_idle_time > 0) wait = 1;
 			}
 			else if(wait == 1 && max_idle_time > 0)
 			{
@@ -2401,7 +2401,7 @@ BMI_mx_testcontext(int incount, bmi_op_i
 		if(wait == 0 || wait == 2)
 		{
 		    mx_test_any(bmi_mx->bmx_ep, match, mask, &status, &result);
-		    if(!result && wait == 0) wait = 1;
+		    if(!result && wait == 0 && max_idle_time > 0) wait = 1;
 		}
 		else if(wait == 1 && max_idle_time > 0)
 		{



More information about the Pvfs2-cvs mailing list