projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e2b7f9f
)
init: make sure that compression enables refill buffers
author
Jens Axboe
<axboe@kernel.dk>
Tue, 31 Oct 2017 14:55:02 +0000
(08:55 -0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 31 Oct 2017 14:55:02 +0000
(08:55 -0600)
Otherwise the results aren't going to be great.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index e80aec300770036346cfcc72d56f53d3c9623c65..736c6ff83656849c94a4dec8ae2781be4079e0bd 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-855,8
+855,10
@@
static int fixup_options(struct thread_data *td)
if (o->compress_percentage == 100) {
o->zero_buffers = 1;
o->compress_percentage = 0;
- } else if (!fio_option_is_set(o, refill_buffers))
+ } else if (!fio_option_is_set(o, refill_buffers))
{
o->refill_buffers = 1;
+ td->flags |= TD_F_REFILL_BUFFERS;
+ }
}
/*