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);
}
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;