bind9/lib
Ondřej Surý cd348cf255
Replace the shared work pool with per-loop, per-lane worker threads
Offloaded work used two different mechanisms: a per-loop isc_helper
thread for CPU-bound crypto (DNSSEC validation, message signature
checks) and the process-global libuv thread pool for blocking I/O (zone
load and dump, inbound transfer apply). Neither could cancel a queued
task, and the two disagreed about exclusive mode — the helper paused
with its loop under isc_loopmgr_pause() but the libuv pool did not, so
blocking offloaded work kept running while a loop held the exclusive
lock.

Unify both behind isc_work: each loop gets its own worker thread per
lane — FAST for short, bounded tasks and SLOW for long, blocking ones —
fed by a private queue. Separate lanes keep a short crypto task off the
path of a multi-second zone dump once both run on per-loop workers;
every lane parks with isc_loopmgr_pause() so exclusive mode now quiesces
offloaded work too; and a still-queued task can be canceled before it
starts (isc_work_cancel). isc_helper is removed and its callers select a
lane.

(cherry picked from commit a5f13b3410)
2026-06-17 21:15:17 +02:00
..
dns Replace the shared work pool with per-loop, per-lane worker threads 2026-06-17 21:15:17 +02:00
isc Replace the shared work pool with per-loop, per-lane worker threads 2026-06-17 21:15:17 +02:00
isccc Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
isccfg Fix spelling typos in comments and code 2026-06-01 15:04:31 +00:00
ns Remove the secondary validator in query.c 2026-06-17 18:59:47 +00:00
.gitignore
Makefile.am Move irs_resconf into libdns and remove libirs 2023-02-24 09:38:59 +00:00