commit | 117868024939609aebd94fff5afacfd29b2f9a6f | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 05 18:33:22 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 05 18:33:22 2007 +0100 |
tree | 7970c1deebd678eded03bfd3f051323937847615 | |
parent | 390c40e2cc8a523d06f8dad6a1040fe9a64f3905 [diff] [blame] |
Cleanup requeue handling Clear ->resid automatically, and get rid of the goto construct. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c index a7ccad6..a395da1 100644 --- a/ioengines.c +++ b/ioengines.c
@@ -195,6 +195,9 @@ assert((io_u->flags & IO_U_F_FLIGHT) == 0); io_u->flags |= IO_U_F_FLIGHT; + io_u->error = 0; + io_u->resid = 0; + if (td->io_ops->flags & FIO_SYNCIO) { fio_gettime(&io_u->issue_time, NULL);