X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=fc653b3d9016e9b7553ac5cadbb37a870ba00a9d;hp=818394a0859846690389408ffd15a75124b66fd0;hb=b907a5b5c708b2620685a866b3b0bcd0d2657e54;hpb=10ba535a5cbb95b5576e33a6f8af093a6ca3bfd7 diff --git a/fio.c b/fio.c index 818394a0..fc653b3d 100644 --- a/fio.c +++ b/fio.c @@ -45,8 +45,6 @@ int shm_id = 0; int temp_stall_ts; char *fio_inst_prefix = _INST_PREFIX; -#define should_fsync(td) ((td_write(td) || td_rw(td)) && (!(td)->odirect || (td)->override_sync)) - static volatile int startup_sem; #define TERMINATE_ALL (-1) @@ -372,7 +370,7 @@ static void do_io(struct thread_data *td) ret = td_io_getevents(td, min_evts, td->cur_depth, timeout); if (ret < 0) { - td_verror(td, -ret); + td_verror(td, ret); break; } else if (!ret) continue; @@ -406,10 +404,6 @@ static void do_io(struct thread_data *td) if (td->thinktime) usec_sleep(td, td->thinktime); - - if (should_fsync(td) && td->fsync_blocks && - (td->io_blocks[DDIR_WRITE] % td->fsync_blocks) == 0) - td_io_sync(td, f); } if (!ret) { @@ -424,14 +418,6 @@ static void do_io(struct thread_data *td) } } -static int td_io_init(struct thread_data *td) -{ - if (td->io_ops->init) - return td->io_ops->init(td); - - return 0; -} - static void cleanup_io_u(struct thread_data *td) { struct list_head *entry, *n;