From e755e1a7a15ce001ddd74fde9fc9bce6f4d978ad Mon Sep 17 00:00:00 2001 From: JaylinYu <64823539+JaylinYu@users.noreply.github.com> Date: Tue, 10 Aug 2021 06:43:50 +0800 Subject: * FIX #1486 by waking up latest aio each time. (#1487) --- src/core/aio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/aio.c b/src/core/aio.c index 3218c4b9..8ca00dd6 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 -- cgit v1.2.3-70-g09d2