Merge branch 'evelu-exec' of https://github.com/ErwanAliasr1/fio
[fio.git] / engines / ime.c
index 42984021ec9e808e39df9aa33c1faf23a169a4d9..440cc29e8e31bcfc9e0ce7a81a59410698925412 100644 (file)
@@ -194,8 +194,7 @@ static int fio_ime_open_file(struct thread_data *td, struct fio_file *f)
        }
        if (td->o.odirect)
                flags |= O_DIRECT;
-       if (td->o.sync_io)
-               flags |= O_SYNC;
+       flags |= td->o.sync_io;
        if (td->o.create_on_open && td->o.allow_create)
                flags |= O_CREAT;