aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dnode_sync.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 10:24:44 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 08:38:45 -0700
commit754c6663a36b9801b391a9659319416ecd79d9d2 (patch)
treee3274b6f5241861c7f4e4d04f9658c6dba852d93 /module/zfs/dnode_sync.c
parent4d58b69de8a6e2dc77b73e113d2c7847d389f456 (diff)
Fix dbuf eviction assertion
Replace non-fatal assertion with warning. This was being observed during testing and it should not be fatal. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/dnode_sync.c')
-rw-r--r--module/zfs/dnode_sync.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/zfs/dnode_sync.c b/module/zfs/dnode_sync.c
index 7d304b2f7..af636dcdb 100644
--- a/module/zfs/dnode_sync.c
+++ b/module/zfs/dnode_sync.c
@@ -418,9 +418,13 @@ dnode_evict_dbufs(dnode_t *dn)
if (evicting)
delay(1);
pass++;
- ASSERT(pass < 100); /* sanity check */
+ if ((pass % 100) == 0)
+ dprintf("Exceeded %d passes evicting dbufs\n", pass);
} while (progress);
+ if (pass >= 100)
+ dprintf("Required %d passes to evict dbufs\n", pass);
+
rw_enter(&dn->dn_struct_rwlock, RW_WRITER);
if (dn->dn_bonus && refcount_is_zero(&dn->dn_bonus->db_holds)) {
mutex_enter(&dn->dn_bonus->db_mtx);