backend: only check bytes_done for engines without FIO_NOIO
authorJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2012 18:36:26 +0000 (20:36 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Oct 2012 18:36:26 +0000 (20:36 +0200)
commitd5abee06d57595679bf8f5fbe70c532a3d8cfdba
tree0a5628c5b35dd0030c650dedc3899c447cbe48f8
parentd0b937ed8841484c2d651919943e8e4c70dfd460
backend: only check bytes_done for engines without FIO_NOIO

This basically reverts the functional part of commit 2557f7e6.
Instead of having to fiddle with the io_u manually, have
the backend check whether we expect data to have been transerred
or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c
engines/cpu.c