X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=5b58ab82252258a072d841c09c69a23f034f1cd2;hp=c18df12d70a874624e5a8b68a78f68bca7a5ea81;hb=cf00f975d506d20ad5f02ee9dd8fec17af74bb2f;hpb=2341a37a2df4bca221d5ea25aa7d8a8307407d1a diff --git a/fio.c b/fio.c index c18df12d..5b58ab82 100644 --- a/fio.c +++ b/fio.c @@ -936,7 +936,7 @@ static int init_io_u(struct thread_data *td) dprint(FD_MEM, "io_u alloc %p, index %u\n", io_u, i); if (!(td->io_ops->flags & FIO_NOIO)) { - io_u->buf = p + max_bs * i; + io_u->buf = p; dprint(FD_MEM, "io_u %p, mem %p\n", io_u, io_u->buf); if (td_write(td)) @@ -953,6 +953,7 @@ static int init_io_u(struct thread_data *td) io_u->index = i; io_u->flags = IO_U_F_FREE; flist_add(&io_u->list, &td->io_u_freelist); + p += max_bs; } return 0;