[PATCH] Add end_fsync option
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 9510dee42971cf244a0cf1bdbec8548765c50d8c..3c35039a6a4788e25bc1abc4165630cb0335769e 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -1136,7 +1136,7 @@ static void do_io(struct thread_data *td)
        if (td->cur_depth)
                cleanup_pending_aio(td);
 
-       if (should_fsync(td) && td->fsync_blocks)
+       if (should_fsync(td) && td->end_fsync)
                sync_td(td);
 }