From 48d3fb39fff4d6f92c121557cf6c754e4ffe8fe8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Apr 2006 05:12:49 +0000 Subject: r15015: add an explanation for this test (This used to be commit 9fdeec506fe5005601c0589574d2b8ae3c6166e5) --- source4/torture/raw/oplock.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source4/torture') diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c index e7fa335e7a..6008724d48 100644 --- a/source4/torture/raw/oplock.c +++ b/source4/torture/raw/oplock.c @@ -553,7 +553,16 @@ BOOL torture_bench_oplock(struct torture_context *torture) 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