]> git.proxmox.com Git - mirror_zfs.git/commit
Fix incorrect assertion in dnode_dirty_l1range
authorPaul Dagnelie <pcd@delphix.com>
Mon, 20 May 2019 00:30:33 +0000 (17:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 20 May 2019 00:30:33 +0000 (17:30 -0700)
commite61b53475e859bd055d205a4d9659f576a9765d1
tree740d603933fd012b4a27ce3ef4ae20152ff98240
parentf378f42b53382dc8e5a21dfad1a4d71271aba059
Fix incorrect assertion in dnode_dirty_l1range

The db_dirtycnt of an EVICTING dbuf is always 0. However, it still
appears in the dn_dbufs tree. If we call dnode_dirty_l1range on a
range that contains an EVICTING dbuf, we will attempt to mark it dirty
(which will fail because it's EVICTING, resulting in a new dbuf being
created and dirtied). Later, in ZFS_DEBUG mode, we assert that all the
dbufs in the range are dirty. If the EVICTING dbuf is still present,
this will trip the assertion erroneously.

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Sara Hartse <sara.hartse@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #8745
module/zfs/dnode.c