]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove locking from rdataslab_getownercase()
authorOndřej Surý <ondrej@isc.org>
Tue, 12 Aug 2025 10:10:24 +0000 (12:10 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 15 Aug 2025 05:35:14 +0000 (07:35 +0200)
commitd0fef4d5e5dd2a2a57c947134ec6b2c3aa39d1cc
tree586cba6fd637353bb25646d7aaa8f50d180545e5
parenteba76df247eae9838ffcf817c0c218e4a98eaccf
Remove locking from rdataslab_getownercase()

Under normal circumstances, the case bitfield in the slabheader should
be set only once.  By actually (soft-)enforcing this, the read locking
can be completely removed from the rdataslab_getownercase() as we can
check whether the case has been already set or not and making everything
immutable once the case has been set.
lib/dns/rdataslab.c