X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=ioengines.c;h=bd2eb4a71ed899f2b7d3857d97ce87312b05aa2e;hb=29c1349f1840c3f60434c9da602074bc8fde4afe;hp=5a2d6b90fb0c6d73d45d0b6c5ce5307f505691d2;hpb=4906e0b57f2b8cbad02ef2428522281cf6038bdd;p=fio.git diff --git a/ioengines.c b/ioengines.c index 5a2d6b90..bd2eb4a7 100644 --- a/ioengines.c +++ b/ioengines.c @@ -359,5 +359,10 @@ int td_io_close_file(struct thread_data *td, struct fio_file *f) */ f->flags |= FIO_FILE_CLOSING; + if (f->sem_owner == td && f->sem_batch) { + f->sem_batch = 0; + unlock_file(f); + } + return put_file(td, f); }