diff --git a/src/core/aio.c b/src/core/aio.c index 3218c4b90..8ca00dd66 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -520,9 +520,8 @@ nni_aio_expire_add(nni_aio *aio) } eq->eq_list[eq->eq_len++] = aio; - if (eq->eq_len == 1) { - nni_cv_wake(&eq->eq_cv); - } + // Fire the latest aio, but it cames with performance punishment + nni_cv_wake(&eq->eq_cv); } static void