Fix re-run issue when job size is set to "unknown"
authorJens Axboe <axboe@kernel.dk>
Tue, 19 Mar 2013 13:49:35 +0000 (07:49 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Mar 2013 13:49:35 +0000 (07:49 -0600)
commitee98e23416e8543bf48b734802cd1e49ed894f9e
tree20260bf876dd6091e46f9bb78047503b7b790b79
parentbdb6d20ac3e6ba85d7757c7f6e5fa04123d4870d
Fix re-run issue when job size is set to "unknown"

Assert that td->o.size is valid before comparing the IO amount
we did to it. This prevents re-running a job because we think
there's more work to do. But if we haven't set ->o.size to a
valid value, then that must not determine whether to re-run
the loop or not.

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