We want to replay those as well.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
!(td->io_issues[DDIR_WRITE] % td->o.fsync_blocks) &&
td->io_issues[DDIR_WRITE] && should_fsync(td)) {
io_u->ddir = DDIR_SYNC;
- return 0;
+ goto out;
}
io_u->ddir = get_rw_ddir(td);
/*
* If using a write iolog, store this entry.
*/
+out:
if (td->o.write_iolog_file)
write_iolog_put(td, io_u);
reads++;
else if (rw == DDIR_WRITE)
writes++;
- else {
+ else if (rw != DDIR_SYNC) {
log_err("bad ddir: %d\n", rw);
continue;
}