From: Jens Axboe Date: Thu, 4 Dec 2014 15:27:21 +0000 (-0700) Subject: Don't clear 'refill_buffers' unconditionally for pattern fill X-Git-Tag: fio-2.2.0~40 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=3397806e19bf63a88309a4e48ae43fd1e64bbf95;p=fio.git Don't clear 'refill_buffers' unconditionally for pattern fill If we have asked for a specific buffer compression, then we need the refill option (if set). Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 23469d8d..c3c62927 100644 --- a/options.c +++ b/options.c @@ -1031,7 +1031,8 @@ static int str_buffer_pattern_cb(void *data, const char *input) &td->o.buffer_pattern_bytes); if (!ret && td->o.buffer_pattern_bytes) { - td->o.refill_buffers = 0; + if (!td->o.compress_percentage) + td->o.refill_buffers = 0; td->o.scramble_buffers = 0; td->o.zero_buffers = 0; } else {