31 lines
845 B
Diff
31 lines
845 B
Diff
From deb3bf845bd672691f1c733160b9d658e243edb4 Mon Sep 17 00:00:00 2001
|
|
From: Mark Andrews <marka@isc.org>
|
|
Date: Sat, 22 Aug 2020 11:12:55 +1000
|
|
Subject: [PATCH] Address tsan error in view:destroy()
|
|
|
|
Conflict: NA
|
|
Reference: https://gitlab.isc.org/isc-projects/bind9/-/commit/deb3bf845bd672691f1c733160b9d658e243edb4
|
|
---
|
|
lib/dns/view.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/lib/dns/view.c b/lib/dns/view.c
|
|
index c1ece2e682..006f99794d 100644
|
|
--- a/lib/dns/view.c
|
|
+++ b/lib/dns/view.c
|
|
@@ -362,9 +362,11 @@ destroy(dns_view_t *view) {
|
|
dns_dlzdb_t *dlzdb;
|
|
|
|
REQUIRE(!ISC_LINK_LINKED(view, link));
|
|
+ LOCK(&view->lock);
|
|
REQUIRE(RESSHUTDOWN(view));
|
|
REQUIRE(ADBSHUTDOWN(view));
|
|
REQUIRE(REQSHUTDOWN(view));
|
|
+ UNLOCK(&view->lock);
|
|
|
|
isc_refcount_destroy(&view->references);
|
|
isc_refcount_destroy(&view->weakrefs);
|
|
--
|
|
2.23.0
|
|
|