From 2c24c93850cc4fa2dfe6b521231a69d6c116bba4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 26 Jan 2013 09:28:23 -0700 Subject: [PATCH] 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 --- fio.h | 2 -- 1 file changed, 2 deletions(-) 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; -- 2.25.1