filehash: Filehash should be removed after the file is closed
authorShaozhi Shawn Ye <yeshao@google.com>
Wed, 10 Sep 2008 07:05:17 +0000 (09:05 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 10 Sep 2008 07:05:17 +0000 (09:05 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index 07c24beb00f51f839778cd6e04e4d5b84c39f562..464c0f2018f51672f88cdd2bd3ced44c8bceda4e 100644 (file)
@@ -649,6 +649,7 @@ void close_and_free_files(struct thread_data *td)
                }
 
                td_io_close_file(td, f);
+               remove_file_hash(f);
 
                sfree(f->file_name);
                f->file_name = NULL;