[PATCH] Add end_fsync option
diff --git a/fio.c b/fio.c
index 9510dee..3c35039 100644
--- a/fio.c
+++ b/fio.c
@@ -1136,7 +1136,7 @@
 	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);
 }