diff options
Diffstat (limited to 'module/zfs/zrlock.c')
-rw-r--r-- | module/zfs/zrlock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/zfs/zrlock.c b/module/zfs/zrlock.c index ec94b0855..36134431f 100644 --- a/module/zfs/zrlock.c +++ b/module/zfs/zrlock.c @@ -163,9 +163,11 @@ zrl_exit(zrlock_t *zrl) int zrl_refcount(zrlock_t *zrl) { + int n; + ASSERT(zrl->zr_refcount > ZRL_DESTROYED); - int n = (int)zrl->zr_refcount; + n = (int)zrl->zr_refcount; return (n <= 0 ? 0 : n); } |