svn commit: samba r15015 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Mon Apr 10 05:12:50 GMT 2006


Author: tridge
Date: 2006-04-10 05:12:49 +0000 (Mon, 10 Apr 2006)
New Revision: 15015

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15015

Log:

add an explanation for this test

Modified:
   branches/SAMBA_4_0/source/torture/raw/oplock.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/oplock.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/oplock.c	2006-04-10 04:51:52 UTC (rev 15014)
+++ branches/SAMBA_4_0/source/torture/raw/oplock.c	2006-04-10 05:12:49 UTC (rev 15015)
@@ -553,7 +553,16 @@
 		NTCREATEX_FLAGS_REQUEST_BATCH_OPLOCK;
 
 	tv = timeval_current();	
-		
+
+	/*
+	  we open the same file with SHARE_ACCESS_NONE from all the
+	  connections in a round robin fashion. Each open causes an
+	  oplock break on the previous connection, which is answered
+	  by the oplock_handler_close() to close the file.
+
+	  This measures how fast we can pass on oplocks, and stresses
+	  the oplock handling code
+	*/
 	printf("Running for %d seconds\n", timelimit);
 	while (timeval_elapsed(&tv) < timelimit) {
 		for (i=0;i<torture_nprocs;i++) {



More information about the samba-cvs mailing list