From: Jens Axboe Date: Fri, 16 Jan 2015 17:25:05 +0000 (-0700) Subject: verify: always check completion list for low depth verifies X-Git-Tag: fio-2.2.5~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=def0009508f0f3c763c4de5e0b62388b42544faf verify: always check completion list for low depth verifies If we have done less IO than the depth, we need to check the pending list. Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index 205f01a2..260fa2ae 100644 --- a/verify.c +++ b/verify.c @@ -1540,10 +1540,12 @@ int verify_state_should_stop(struct thread_data *td, struct io_u *io_u) return 0; /* - * If we're not into the window of issues - depth yet, continue + * If we're not into the window of issues - depth yet, continue. If + * issue is shorter than depth, do check. */ - if (td->io_blocks[DDIR_READ] < s->depth || - s->numberio - td->io_blocks[DDIR_READ] > s->depth) + if ((td->io_blocks[DDIR_READ] < s->depth || + s->numberio - td->io_blocks[DDIR_READ] > s->depth) && + s->numberio > s->depth) return 0; /*