Not a bug as such, but it could be if we used it in other
locations in the future. So better be safe.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
void io_u_fill_buffer(struct thread_data *td, struct io_u *io_u,
unsigned int max_bs)
{
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
if (!td->o.zero_buffers)
fill_random_buf(io_u->buf, max_bs);
else