Add fix-evict-dbufs branch
This commit is contained in:
parent
34dc7c2f25
commit
53822a4c14
|
@ -0,0 +1,8 @@
|
||||||
|
From: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||||
|
Subject: [PATCH] fix dbuf evict assertion
|
||||||
|
|
||||||
|
Replace non-fatal assertion with warning
|
||||||
|
|
||||||
|
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
||||||
|
|
||||||
|
---
|
|
@ -394,9 +394,13 @@ dnode_evict_dbufs(dnode_t *dn)
|
||||||
if (evicting)
|
if (evicting)
|
||||||
delay(1);
|
delay(1);
|
||||||
pass++;
|
pass++;
|
||||||
ASSERT(pass < 100); /* sanity check */
|
if ((pass % 100) == 0)
|
||||||
|
dprintf("Exceeded %d passes evicting dbufs\n", pass);
|
||||||
} while (progress);
|
} while (progress);
|
||||||
|
|
||||||
|
if (pass >= 100)
|
||||||
|
dprintf("Required %d passes to evict dbufs\n", pass);
|
||||||
|
|
||||||
rw_enter(&dn->dn_struct_rwlock, RW_WRITER);
|
rw_enter(&dn->dn_struct_rwlock, RW_WRITER);
|
||||||
if (dn->dn_bonus && refcount_is_zero(&dn->dn_bonus->db_holds)) {
|
if (dn->dn_bonus && refcount_is_zero(&dn->dn_bonus->db_holds)) {
|
||||||
mutex_enter(&dn->dn_bonus->db_mtx);
|
mutex_enter(&dn->dn_bonus->db_mtx);
|
||||||
|
|
Loading…
Reference in New Issue