aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dns
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dns')
-rw-r--r--src/vnet/dns/dns.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/dns/dns.h b/src/vnet/dns/dns.h
index 19de69cc248..d5029e521d6 100644
--- a/src/vnet/dns/dns.h
+++ b/src/vnet/dns/dns.h
@@ -206,8 +206,7 @@ dns_cache_unlock (dns_main_t * dm)
{
if (dm->cache_lock)
{
- CLIB_MEMORY_BARRIER ();
- *dm->cache_lock = 0;
+ clib_atomic_release (dm->cache_lock);
}
}