Permalink
Browse files

Enable rwlock DEBUG for bad unlinked-drain detection

And define the rwlock_isinit() call if DEBUG is enable to
force zfs to be matched.
  • Loading branch information...
lundman committed Nov 28, 2014
1 parent cd6e09d commit 8c89b46ca872572281ed62b506958a66a912f243
Showing with 11 additions and 0 deletions.
  1. +11 −0 module/spl/spl-rwlock.c
@@ -37,6 +37,17 @@ static lck_grp_t *zfs_rwlock_group = NULL;

uint64_t zfs_active_rwlock = 0;

#define DEBUG


#ifdef DEBUG
int rw_isinit(krwlock_t *rwlp)
{
if (rwlp->rw_pad != 0x012345678)
return 0;
return 1;
}
#endif


void

0 comments on commit 8c89b46

Please sign in to comment.