From: Jens Axboe Date: Tue, 10 Jun 2014 01:52:05 +0000 (-0600) Subject: Reset file count when freeing files X-Git-Tag: fio-2.1.10~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=66ee4002731302216f47f9088d639bcba1c78200 Reset file count when freeing files This fixes and oops with iolog replay, and a manually specified filename= Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index 84eaed68..2049fd65 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1524,6 +1524,8 @@ int get_fileno(struct thread_data *td, const char *fname) void free_release_files(struct thread_data *td) { close_files(td); + td->o.nr_files = 0; + td->o.open_files = 0; td->files_index = 0; td->nr_normal_files = 0; }