From: Jens Axboe Date: Sat, 26 Jan 2013 16:28:23 +0000 (-0700) Subject: Always fsync if asked to X-Git-Tag: fio-2.0.14~70 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2c24c93850cc4fa2dfe6b521231a69d6c116bba4;ds=sidebyside Always fsync if asked to Currently we don't fsync() is direct IO is issued. But if the user asked for fsync(), he should get an fsync. So remove this restriction. Reported-by: Stefan Hajnoczi Signed-off-by: Jens Axboe --- diff --git a/fio.h b/fio.h index 3a263351..9e202996 100644 --- a/fio.h +++ b/fio.h @@ -655,8 +655,6 @@ static inline int should_fsync(struct thread_data *td) { if (td->last_was_sync) return 0; - if (td->o.odirect) - return 0; if (td_write(td) || td_rw(td) || td->o.override_sync) return 1;