From 7c80e5e06995bffd7ccce28bda173ee37d467cc1 Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <riastradh@NetBSD.org>
Date: Thu, 31 Mar 2022 02:42:06 +0000
Subject: [PATCH 39/49] ucas(9): Convert membar_exit to membar_release.

---
 sys/kern/subr_copy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/subr_copy.c b/sys/kern/subr_copy.c
index 0ba7e40c54a2..a6604b81b7d1 100644
--- a/sys/kern/subr_copy.c
+++ b/sys/kern/subr_copy.c
@@ -412,7 +412,7 @@ ucas_critical_cpu_gate(void *arg __unused)
 	 * the following atomic_dec_uint into a store-release.
 	 */
 #ifndef __HAVE_ATOMIC_AS_MEMBAR
-	membar_exit();
+	membar_release();
 #endif
 	atomic_dec_uint(&ucas_critical_pausing_cpus);
 
@@ -449,7 +449,7 @@ ucas_critical_wait(void)
 	 * happen before the ucas -- no buffered stores in other CPUs
 	 * can clobber it later on, for instance.
 	 *
-	 * Matches membar_exit/atomic_dec_uint (store-release) in
+	 * Matches membar_release/atomic_dec_uint (store-release) in
 	 * ucas_critical_cpu_gate.
 	 */
 	while (atomic_load_acquire(&ucas_critical_pausing_cpus) > 0) {