From: Maria Matejka Date: Mon, 1 Apr 2024 13:03:24 +0000 (+0200) Subject: IO loop: fixed local hot page cache flushing condition X-Git-Tag: v3.0.0~246^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418578bc6b5c947adf15a866c20060d9b331c8dd;p=thirdparty%2Fbird.git IO loop: fixed local hot page cache flushing condition --- diff --git a/sysdep/unix/io-loop.c b/sysdep/unix/io-loop.c index 0a222ba02..705b34072 100644 --- a/sysdep/unix/io-loop.c +++ b/sysdep/unix/io-loop.c @@ -885,7 +885,7 @@ bird_thread_main(void *arg) ASSERT_DIE(pfd.loop.used == pfd.pfd.used); } /* Nothing to do in at least 5 seconds, flush local hot page cache */ - else if ((timeout > 5000) && (timeout < 0)) + else if ((timeout > 5000) || (timeout < 0)) flush_local_pages(); bird_thread_busy_update(thr, timeout);