[PATCH V2 01/16] src/locktest: Remove unnecessary sleep

ira.weiny
2019-09-23T17:53:39Z

There is no need to sleep because we asked for debugging. Remove extra
sleep code.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
---
src/locktest.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/src/locktest.c b/src/locktest.c
index 8e27e922668e..29e914febdf9 100644
--- a/src/locktest.c
+++ b/src/locktest.c
@@ -69,7 +69,6 @@ extern int h_errno;

#define RAND() (rand())
#define SRAND(s) (srand(s))
-#define SLEEP(s) (sleep(s))

#define MIN(A,B) (((A)<(B))?(A):(B))
#define MAX(A,B) (((A)>(B))?(A):(B))
@@ -1037,10 +1036,6 @@ main(int argc, char *argv[])
}
}
}
- if (debug > 1) {
- fprintf(stderr, "server sleeping ...\n");
- SLEEP(1);
- }
if(tests[index][TEST_NUM] != 0) {
if(last_test != tests[index][TEST_NUM]) {
test_count++;
--
2.20.1