X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=b18bc9a2010efe7cd22cf5993e1e11d492976c35;hp=185314f05fd41f7bb6291217012f8c7f6f3f8beb;hb=3d7b485f9478ed5d291ec58a16a40781ae3ab4ae;hpb=ebb1415f729c123b8a13bcbd667bf4b4cc95b4d4 diff --git a/ioengines.c b/ioengines.c index 185314f0..b18bc9a2 100644 --- a/ioengines.c +++ b/ioengines.c @@ -186,6 +186,8 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) assert((io_u->flags & IO_U_F_FLIGHT) == 0); io_u->flags |= IO_U_F_FLIGHT; + assert(io_u->file->flags & FIO_FILE_OPEN); + io_u->error = 0; io_u->resid = 0;