]> git.ipfire.org Git - thirdparty/bind9.git/commit
Dispatch async work jobs from the correct loop
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Mar 2026 17:25:54 +0000 (18:25 +0100)
committerOndřej Surý <ondrej@sury.org>
Sat, 14 Mar 2026 05:32:54 +0000 (06:32 +0100)
commite7c550730acecd87a7dd0d195d7752fb97e10087
tree85ef6b6f75eb1bae7d33b157ed9324b92b391d51
parentf1311d2d196d381b2170c4b3d54262874a5d424e
Dispatch async work jobs from the correct loop

Refactor dns_loadctx_t and dns_dumpctx_t to use standard
ISC_REFCOUNT_DECL and ISC_REFCOUNT_IMPL macros, retiring the
redundant manual attach and detach implementations.

Introduce dns_loadctx_enqueue() and dns_dumpctx_enqueue() to
ensure compliance with the new strict loop affinity in
isc_work_enqueue(). If the current loop does not match the
target loop, the enqueue operation is safely bounced to the
correct thread via isc_async_run().
lib/dns/master.c
lib/dns/masterdump.c