commit | 3d7b485f9478ed5d291ec58a16a40781ae3ab4ae | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 13 14:50:28 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Mar 13 14:50:28 2007 +0100 |
tree | 7eafb49a2ba9abac53fa112611e92ed008b168ef | |
parent | ebb1415f729c123b8a13bcbd667bf4b4cc95b4d4 [diff] [blame] |
Check for open files on io operations Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c index 185314f..b18bc9a 100644 --- a/ioengines.c +++ b/ioengines.c
@@ -186,6 +186,8 @@ 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;