X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=93e763124c1b18f56bdfc6eb54e912f0b0f11788;hp=f4eae04db6df5d072103191f05b187fcb6f19e80;hb=6e1e384ec585617a096fc67cbad5661da9082396;hpb=90b7a96d9573a14f20470af2aa0dd4e60611a477 diff --git a/ioengines.c b/ioengines.c index f4eae04d..93e76312 100644 --- a/ioengines.c +++ b/ioengines.c @@ -475,7 +475,9 @@ int td_io_close_file(struct thread_data *td, struct fio_file *f) fio_file_set_closing(f); disk_util_dec(f->du); - unlock_file_all(td, f); + + if (td->o.file_lock_mode != FILE_LOCK_NONE) + unlock_file_all(td, f); return put_file(td, f); }