X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_u.c;h=ede61a8eae32dfcd34bc5b9022b99f2b05eaad3b;hp=372f46a0507ddd941f47ff9d38a16a6d745569ae;hb=a0a930efb970a688c0e21e396755210e1bdd05a9;hpb=4d2e0f49006af315ec8653008938bc51f2a0ddac 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;