X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=47c02e0ad135dea4da458da5e0116084dd7885d7;hp=fc49bd325879f01d63c53efaaff25cc0e34e63e2;hb=3bfb53dd20223015916e9ade388a5f9d49b87172;hpb=306ddc9752eef70c3fbb111af63d197a3a6d447f diff --git a/io_u.c b/io_u.c index fc49bd32..47c02e0a 100644 --- a/io_u.c +++ b/io_u.c @@ -686,6 +686,7 @@ static struct fio_file *get_next_file_rr(struct thread_data *td, int goodf, if (err) { dprint(FD_FILE, "error %d on open of %s\n", err, f->file_name); + f = NULL; continue; } opened = 1; @@ -847,7 +848,6 @@ struct io_u *get_io_u(struct thread_data *td) /* * Set io data pointers. */ - io_u->endpos = io_u->offset + io_u->buflen; io_u->xfer_buf = io_u->buf; io_u->xfer_buflen = io_u->buflen;