From 8d072f205f6d92a7bed20a68a635b634a69c3af3 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Thu, 31 Mar 2022 02:37:26 +0000 Subject: [PATCH 33/49] rumpkern/sleepq: Convert membar_exit/store to atomic_store_release. --- sys/rump/librump/rumpkern/sleepq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/rump/librump/rumpkern/sleepq.c b/sys/rump/librump/rumpkern/sleepq.c index 4d1ded236e88..5fe92a5ae55d 100644 --- a/sys/rump/librump/rumpkern/sleepq.c +++ b/sys/rump/librump/rumpkern/sleepq.c @@ -163,7 +163,6 @@ lwp_unlock_to(struct lwp *l, kmutex_t *new) KASSERT(mutex_owned(l->l_mutex)); old = l->l_mutex; - membar_exit(); - l->l_mutex = new; + atomic_store_release(&l->l_mutex, new); mutex_spin_exit(old); }