From: Jens Axboe Date: Tue, 17 Mar 2015 21:57:13 +0000 (-0600) Subject: io_u: fix refill, should be random content X-Git-Tag: fio-2.2.7~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=999d245e8d1fe81de55ffaac7bc1bd282c447ba9;ds=sidebyside io_u: fix refill, should be random content Unless we asked for zeroed buffers, we fill them randomly. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 6567e10a..975d2424 100644 --- a/io_u.c +++ b/io_u.c @@ -1895,8 +1895,10 @@ void fill_io_buffer(struct thread_data *td, void *buf, unsigned int min_write, } while (left); } else if (o->buffer_pattern_bytes) fill_buffer_pattern(td, buf, max_bs); - else + else if (o->zero_buffers) memset(buf, 0, max_bs); + else + fill_random_buf(get_buf_state(td), buf, max_bs); } /*