HomeFreeBSD

Don't allow dnode allocation if dn_holds != 0

Description

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

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Jan 10 2019, 10:36 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 10 2019, 10:36 PM
Parents
rG8bd2a2866ccc: Removed suggestion to use root dataset as bootfs
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG58769a4ebd46: Don't allow dnode allocation if dn_holds != 0 (authored by Tom Caputi <tcaputi@datto.com>).Jan 10 2019, 10:36 PM