projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add the file sharing bits
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 5a2d6b90fb0c6d73d45d0b6c5ce5307f505691d2..bd2eb4a71ed899f2b7d3857d97ce87312b05aa2e 100644
(file)
--- 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);
}