projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc1e5b
)
Fix zones for numjobs=x, where x > 1
author
Jens Axboe
<axboe@kernel.dk>
Thu, 7 Feb 2013 12:06:18 +0000
(13:06 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 7 Feb 2013 12:06:18 +0000
(13:06 +0100)
In the options fixup, we auto-set open_files to 1 if it hasn't been set.
So any duplicated jobs will clear the zone. Fixup the check to properly
check for > 1 open files.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 60ba299379ddb024844be83dbf4b6d4b72a3d7a1..e8f3a9bb24e856f262b08dcdf43cfaeedb65b0d0 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-408,7
+408,7
@@
static int fixup_options(struct thread_data *td)
/*
* only really works with 1 file
*/
- if (o->zone_size && o->open_files
==
1)
+ if (o->zone_size && o->open_files
>
1)
o->zone_size = 0;
/*