From: Jens Axboe Date: Wed, 18 Mar 2015 00:11:07 +0000 (-0600) Subject: Scramble IO buffers unless explicitly told not X-Git-Tag: fio-2.2.7~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7d1bb70f3d85d041b4b7dd926e98054fea980bdc;hp=999d245e8d1fe81de55ffaac7bc1bd282c447ba9;p=fio.git Scramble IO buffers unless explicitly told not Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 975d2424..a45dd402 100644 --- a/io_u.c +++ b/io_u.c @@ -1484,7 +1484,8 @@ struct io_u *get_io_u(struct thread_data *td) io_u_fill_buffer(td, io_u, td->o.min_bs[DDIR_WRITE], io_u->xfer_buflen); - } else if ((td->flags & TD_F_SCRAMBLE_BUFFERS) && + } + if ((td->flags & TD_F_SCRAMBLE_BUFFERS) && !(td->flags & TD_F_COMPRESS)) do_scramble = 1; if (td->flags & TD_F_VER_NONE) {