We need to clear f to NULL before doing a continue on FIO_FILE_DONE.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
if (td->next_file >= td->o.nr_files)
td->next_file = 0;
if (td->next_file >= td->o.nr_files)
td->next_file = 0;
- if (f->flags & FIO_FILE_DONE)
+ if (f->flags & FIO_FILE_DONE) {
+ f = NULL;
if ((!goodf || (f->flags & goodf)) && !(f->flags & badf))
break;
if ((!goodf || (f->flags & goodf)) && !(f->flags & badf))
break;