HomeFreeBSD

Fixing gang ABD when adding another gang

Description

Fixing gang ABD when adding another gang

I originally applied a fix in #11539 to fix a parent's child references
when a gang ABD is free'd. However, I did not take into account
abd_gang_add_gang(). We still need to make sure to update the child
references in this function as well. In order to resolve this I removed
decreasing the gang ABD's size in abd_free_gang() as well as moved back
the original placeent of zfs_refcount_remove_many() in abd_free().

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #11542

Details

Provenance
Brian Atkinson <batkinson@lanl.gov>Authored on Jan 29 2021, 12:54 AM
GitHub <noreply@github.com>Committed on Jan 29 2021, 12:54 AM
Parents
rG9f8c7e6a76a1: ZTS: add userspace_send_encrypted.ksh to Makefile
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG2993698eb3df: Fixing gang ABD when adding another gang (authored by Brian Atkinson <batkinson@lanl.gov>).Jan 29 2021, 12:54 AM