Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dn->dn_type != DMU_OT_NONE in dbuf_create()
As part of commit 50c957f this check was pulled up before the call to dnode_create(). This is racy since the dnode_phys_t in the dbuf could be updated after the check passed but before it's created by dnode_create(). Close the race by adding the original check back to detect this unlikely case. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#5396 Closes openzfs#6522
- Loading branch information