[PATCH] Automatically adjust iodepth for nr_files

If iodepth isn't directly specified, allocate 1 io_u per file to
avoid serializing the workload. If iodepth is specified, use whatever
value was given as previously.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c
index 3df7655..c81dfdd 100644
--- a/init.c
+++ b/init.c
@@ -140,7 +140,7 @@
 		td->iodepth = 1;
 	else {
 		if (!td->iodepth)
-			td->iodepth = 1;
+			td->iodepth = td->nr_files;
 	}
 
 	/*