We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2098a00 commit eb68e3cCopy full SHA for eb68e3c
module/zfs/zrlock.c
@@ -106,16 +106,16 @@ zrl_add_impl(zrlock_t *zrl, const char *zc)
106
void
107
zrl_remove(zrlock_t *zrl)
108
{
109
- uint32_t n;
110
-
111
#ifdef ZFS_DEBUG
112
if (zrl->zr_owner == curthread) {
113
zrl->zr_owner = NULL;
114
zrl->zr_caller = NULL;
115
}
+ int32_t n = atomic_dec_32_nv((uint32_t *)&zrl->zr_refcount);
+ ASSERT3S(n, >=, 0);
116
+#else
117
+ atomic_dec_32((uint32_t *)&zrl->zr_refcount);
118
#endif
- n = atomic_dec_32_nv((uint32_t *)&zrl->zr_refcount);
- ASSERT3S((int32_t)n, >=, 0);
119
120
121
int
0 commit comments