X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=185bba03d9829052877b118f03257156c2eb2bc0;hp=8cc348a835fed67a2310c04f84b4608281db1315;hb=e84b371e121ee224e02a90d01bf9074b759a409f;hpb=5e0baa7f423995c4f75070d6a2ee56619e195a36 diff --git a/io_u.c b/io_u.c index 8cc348a8..185bba03 100644 --- a/io_u.c +++ b/io_u.c @@ -1374,6 +1374,8 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u) void io_u_fill_buffer(struct thread_data *td, struct io_u *io_u, unsigned int max_bs) { + io_u->buf_filled_len = 0; + if (!td->o.zero_buffers) fill_random_buf(io_u->buf, max_bs); else