From: Jens Axboe Date: Mon, 30 Nov 2015 21:28:54 +0000 (-0700) Subject: io_u: don't use xfer_buflen before we have set it up X-Git-Tag: fio-2.2.13~64 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9e129577b8799a9578a6aa6021a58367981e320a;ds=sidebyside io_u: don't use xfer_buflen before we have set it up Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index dd4502f1..3b27d5ed 100644 --- a/io_u.c +++ b/io_u.c @@ -1527,7 +1527,7 @@ struct io_u *get_io_u(struct thread_data *td) if (td->flags & TD_F_REFILL_BUFFERS) { io_u_fill_buffer(td, io_u, td->o.min_bs[DDIR_WRITE], - io_u->xfer_buflen); + io_u->buflen); } else if ((td->flags & TD_F_SCRAMBLE_BUFFERS) && !(td->flags & TD_F_COMPRESS)) do_scramble = 1;