2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Always restart dispatchers on empty readyq

This commit is contained in:
Witold Kręcicki
2018-10-19 10:13:20 +00:00
parent d7be8afea5
commit 818d63a3a1

View File

@@ -1171,11 +1171,9 @@ dispatch(isc__taskmgr_t *manager, int threadid) {
* point and continue with the regular ready queue.
*/
if (manager->tasks_running == 0 && empty_readyq(manager, queue)) {
if (manager->mode != isc_taskmgrmode_normal) {
manager->mode = isc_taskmgrmode_normal;
for (unsigned i=0; i < manager->workers; i++) {
BROADCAST(&manager->work_available[i]);
}
manager->mode = isc_taskmgrmode_normal;
for (unsigned i=0; i < manager->workers; i++) {
BROADCAST(&manager->work_available[i]);
}
}
}