Fix loop with multiple files
[fio.git] / filesetup.c
index e9dc72db740669952d4c8d4fb24dea38855fdfeb..aad0720f97e9429248f31fd439e2a6e5d1098170 100644 (file)
@@ -523,6 +523,7 @@ void put_file(struct thread_data *td, struct fio_file *f)
 
        if (td->io_ops->close_file)
                td->io_ops->close_file(td, f);
+
        td->nr_open_files--;
        f->flags &= ~FIO_FILE_OPEN;
 }