From 2f844d305f4b3cda8af0e53dc8873cfd899c5855 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 25 May 2006 23:01:01 +0200 Subject: [PATCH] [PATCH] Only fsync on close if fsync= given --- fio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fio.c b/fio.c index 7a037ce9..8daa660b 100644 --- a/fio.c +++ b/fio.c @@ -1050,7 +1050,7 @@ static void do_io(struct thread_data *td) if (td->cur_depth) cleanup_pending_aio(td); - if (should_fsync(td)) + if (should_fsync(td) && td->fsync_blocks) sync_td(td); } -- 2.25.1