Remove ->mutex after last use, not on job exit
[fio.git] / filesetup.c
index 48b5dcd1cdfbbf68c0d9a83f483569c916dc01d0..af14c6760566e53a786ce46a1ba78996edd9505e 100644 (file)
@@ -318,18 +318,6 @@ err:
        return 1;
 }
 
-int reopen_file(struct thread_data *td, struct fio_file *f)
-{
-       f->last_free_lookup = 0;
-       f->last_completed_pos = 0;
-       f->last_pos = 0;
-
-       if (f->file_map)
-               memset(f->file_map, 0, f->num_maps * sizeof(long));
-
-       return td_io_open_file(td, f);
-}
-
 int open_files(struct thread_data *td)
 {
        struct fio_file *f;