init: make sure that compression enables refill buffers
[fio.git] / init.c
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;
+               }
        }
 
        /*