From: Jens Axboe Date: Thu, 25 May 2006 21:01:01 +0000 (+0200) Subject: [PATCH] Only fsync on close if fsync= given X-Git-Tag: fio-1.4~22 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2f844d305f4b3cda8af0e53dc8873cfd899c5855 [PATCH] Only fsync on close if fsync= given --- 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); }