@Ramzec This is 3rd hand info... would be great if someone from Nexenta 
(@skiselkov ?) could file a bug report.

```
Thread A is evicting dbufs that are related to dnodeA
dnode_evict_dbufs(dnoneA) enters dn_dbufs_mtx after that walks the AVL of dbufs 
and calls:
dbuf_destroy()->...->dbuf_evict_notify()->dbuf_evict_one()->select a dbuf from 
cache->dbuf_destroy()->mutex_enter(dn_dbufs_mtx of dnoneB)

Thread B is evicting  dbufs that are related to dnodeB
dnode_evict_dbufs(dnodeB) enters dn_dbufs_mtx, after that walks the AVL of 
dbufs and calls:
dbuf_destroy()->...->dbuf_evict_notify()->dbuf_evict_one()->select a dbuf from 
cache->dbuf_destroy()->mutex_enter(dn_dbufs_mtx of dnodeA)
> $C
ffffd001eb9b8570 vpanic()
ffffd001eb9b8610 0xfffffffffbb2d77a()
ffffd001eb9b8680 mutex_vector_enter+0x3a3(ffffd06372a15498)
ffffd001eb9b86e0 dbuf_destroy+0x1b3(ffffd063729427e8)
ffffd001eb9b8700 dbuf_evict_one+0xae()
ffffd001eb9b8720 dbuf_evict_notify+0xb9()
ffffd001eb9b87f0 dbuf_rele_and_unlock+0x2b1(ffffd063748e0258, ffffd063b28b3e10)
ffffd001eb9b8830 dbuf_rele+0x30(ffffd063748e0258, ffffd063b28b3e10)
ffffd001eb9b8890 dbuf_destroy+0x168(ffffd063b28b3e10)
ffffd001eb9b89c0 dnode_evict_dbufs+0x120(ffffd063b432b560, ffffffff)
ffffd001eb9b8cb0 dmu_objset_evict_dbufs+0x83(ffffd06372540b00)
ffffd001eb9b8d10 zfsvfs_teardown+0x142(ffffd063c42db000, 1)
ffffd001eb9b8d70 zfs_umount+0x10c(ffffd063a44b6028, 0, ffffd06332a1b528)
ffffd001eb9b8da0 fsop_unmount+0x1b(ffffd063a44b6028, 0, ffffd06332a1b528)
ffffd001eb9b8df0 dounmount+0x57(ffffd063a44b6028, 0, ffffd06332a1b528)
ffffd001eb9b8e40 umount2_engine+0x96(ffffd063a44b6028, 0, ffffd06332a1b528, 1)
ffffd001eb9b8ec0 umount2+0x163(819e1e8, 0)
ffffd001eb9b8f10 _sys_sysenter_post_swapgs+0x149()
```

This change would prevent the reported stack trace.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/645#issuecomment-394165394
------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/Tb73a3d2cba6f4c23-M71a1f2cfb6926406b5889424
Delivery options: https://openzfs.topicbox.com/groups

Reply via email to