projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sync engine: missing fsync check in vsync
[fio.git]
/
engines
/
sync.c
diff --git
a/engines/sync.c
b/engines/sync.c
index 505381d4ca942b932d7171393a2dc8f51c558726..c5410c7d4a97f6cbef713de04e15608b0e90f7e8 100644
(file)
--- a/
engines/sync.c
+++ b/
engines/sync.c
@@
-157,6
+157,11
@@
static int fio_vsyncio_queue(struct thread_data *td, struct io_u *io_u)
*/
if (sd->queued)
return FIO_Q_BUSY;
+ if (io_u->ddir == DDIR_SYNC) {
+ int ret = fsync(io_u->file->fd);
+
+ return fio_io_end(td, io_u, ret);
+ }
sd->queued = 0;
sd->queued_bytes = 0;