]> git.proxmox.com Git - mirror_zfs.git/commit
Don't allow dnode allocation if dn_holds != 0
authorTom Caputi <tcaputi@datto.com>
Thu, 10 Jan 2019 22:36:23 +0000 (17:36 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Jan 2019 22:36:23 +0000 (14:36 -0800)
commit58769a4ebd462461131f19cccf25c3d19a4dbfb5
tree427986931feacf1af02fb1f7760cae5d26ecacde
parent8bd2a2866ccc3f606566ce5503b32053948513ab
Don't allow dnode allocation if dn_holds != 0

This patch simply fixes a small bug where dnode_hold_impl() could
attempt to allocate a dnode that was in the process of being freed,
but which still had active references. This patch simply adds the
required check.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8249
module/zfs/dnode.c