diff options
Diffstat (limited to 'src/vppinfra/mheap.c')
-rw-r--r-- | src/vppinfra/mheap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vppinfra/mheap.c b/src/vppinfra/mheap.c index 2769838d4ba..b5566bd6389 100644 --- a/src/vppinfra/mheap.c +++ b/src/vppinfra/mheap.c @@ -82,8 +82,7 @@ mheap_maybe_unlock (void *v) if (--h->recursion_count == 0) { h->owner_cpu = ~0; - CLIB_MEMORY_BARRIER (); - h->lock = 0; + clib_atomic_release (&h->lock); } } } |