]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Fix dbuf eviction assertion
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Aug 2010 17:24:44 +0000 (10:24 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 Aug 2010 15:38:45 +0000 (08:38 -0700)
Replace non-fatal assertion with warning.  This was being observed
during testing and it should not be fatal.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/dnode_sync.c

index 7d304b2f7ba359e8f079fbdf4c48da44cb571003..af636dcdb2b0974fd5266ee5b9b9b1471eb20cd4 100644 (file)
@@ -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);