commit | d5ed68ea91e3f6a6b366cc2dcf2b1e7b9ce2b8d0 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 09:33:43 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 09:33:43 2007 +0200 |
tree | 316dc96008718a8a526d7ece6bc923710d5dad32 | |
parent | fb0480b138f5e7e59047a238200675eaa1bdad1d [diff] [blame] |
Fix infinite loop in get_next_file_rr() We need to clear f to NULL before doing a continue on FIO_FILE_DONE. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index 5f51a00..691f7af 100644 --- a/io_u.c +++ b/io_u.c
@@ -446,8 +446,10 @@ 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; continue; + } if ((!goodf || (f->flags & goodf)) && !(f->flags & badf)) break;