X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=io_u.c;h=ede61a8eae32dfcd34bc5b9022b99f2b05eaad3b;hb=face81b280ab94ba5d975739578779157c8b54ce;hp=372f46a0507ddd941f47ff9d38a16a6d745569ae;hpb=7756b0d046ef74c32df134c8b716237cc5e16bad;p=fio.git diff --git a/io_u.c b/io_u.c index 372f46a0..ede61a8e 100644 --- a/io_u.c +++ b/io_u.c @@ -572,13 +572,7 @@ long io_u_queued_complete(struct thread_data *td, int min_events) struct timespec *tvp = NULL; int ret; - if (min_events > 0) { - ret = td_io_commit(td); - if (ret < 0) { - td_verror(td, -ret, "td_io_commit"); - return ret; - } - } else { + if (!min_events) { struct timespec ts = { .tv_sec = 0, .tv_nsec = 0, }; tvp = &ts;