X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=4514840dbb11027da8127a64e379ddb21d7acd4f;hp=9c1bed379df586ba8f3efea187aaaf319ce2d387;hb=3545a109a2cfe5ab22969ef453dc049db47f0b68;hpb=ce952ab65a46f728ffada9613bb50ace7aeaa7c8 diff --git a/fio.c b/fio.c index 9c1bed37..4514840d 100644 --- a/fio.c +++ b/fio.c @@ -874,9 +874,9 @@ static int init_io_u(struct thread_data *td) io_u->buf = p + max_bs * i; dprint(FD_MEM, "io_u %p, mem %p\n", io_u, io_u->buf); - if (td_write(td) && !td->o.refill_buffers) + if (td_write(td)) io_u_fill_buffer(td, io_u, max_bs); - else if (td_write(td) && td->o.verify_pattern_bytes) { + if (td_write(td) && td->o.verify_pattern_bytes) { /* * Fill the buffer with the pattern if we are * going to be doing writes. @@ -1699,7 +1699,6 @@ int main(int argc, char *argv[], char *envp[]) arch_init(envp); sinit(); - init_rand(&__fio_rand_state); /* * We need locale for number printing, if it isn't set then just