]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove exclusive mode when scheduling zone load
authorColin Vidal <colin@isc.org>
Mon, 10 Nov 2025 08:49:06 +0000 (09:49 +0100)
committerColin Vidal <colin@isc.org>
Tue, 18 Nov 2025 11:16:14 +0000 (12:16 +0100)
Remove the exclusive mode when scheduling the zone load right after
(re)loading `named` configuration, as there is no reason anymore to
schedule zone loading while the exclusive lock is held. Data which can
be read or written by multiple threads are locked or atomic.

bin/named/server.c

index f06f95f7312372dc89b45e55c33d47dae3f6780e..34abfc7fc61cfafbac064300aff55e1c97ac83ee 100644 (file)
@@ -9294,8 +9294,6 @@ load_zones(named_server_t *server, bool reconfig) {
        zl->server = server;
        zl->reconfig = reconfig;
 
-       isc_loopmgr_pause();
-
        isc_refcount_init(&zl->refs, 1);
 
        /*
@@ -9339,8 +9337,6 @@ cleanup:
                isc_mem_put(server->mctx, zl, sizeof(*zl));
        }
 
-       isc_loopmgr_resume();
-
        return result;
 }