X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.c;h=3c35039a6a4788e25bc1abc4165630cb0335769e;hb=9d0d424761eeff6e8a88103c23d9bdf481a97d8e;hp=bc0083433a445ed688bdf04c11b63dab224ba524;hpb=aea47d444b02bd7c622f82bb73151fd7136a499f;p=fio.git diff --git a/fio.c b/fio.c index bc008343..3c35039a 100644 --- 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); } @@ -1158,6 +1158,8 @@ static int init_io(struct thread_data *td) return fio_posixaio_init(td); else if (td->io_engine == FIO_SGIO) return fio_sgio_init(td); + else if (td->io_engine == FIO_SPLICEIO) + return fio_spliceio_init(td); else { fprintf(stderr, "bad io_engine %d\n", td->io_engine); return 1;