summaryrefslogtreecommitdiff
path: root/kern/sref.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/sref.c')
-rw-r--r--kern/sref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/sref.c b/kern/sref.c
index d2eb8187..1ad9212e 100644
--- a/kern/sref.c
+++ b/kern/sref.c
@@ -248,13 +248,13 @@ sref_weakref_init(struct sref_weakref *weakref, struct sref_counter *counter)
static void
sref_weakref_mark_dying(struct sref_weakref *weakref)
{
- atomic_or(&weakref->addr, SREF_WEAKREF_DYING, ATOMIC_RELEASE);
+ atomic_or(&weakref->addr, SREF_WEAKREF_DYING, ATOMIC_RELAXED);
}
static void
sref_weakref_clear_dying(struct sref_weakref *weakref)
{
- atomic_and(&weakref->addr, SREF_WEAKREF_MASK, ATOMIC_RELEASE);
+ atomic_and(&weakref->addr, SREF_WEAKREF_MASK, ATOMIC_RELAXED);
}
static int