HomeFreeBSD

Correct ABD size for split block ZIOs

Description

Correct ABD size for split block ZIOs

Currently when layering the ABD buffer of each split block on top of
an indirect vdev's ZIO ABD we don't specify the split block's ABD.
This results in those ABDs being incorrectly sized by inheriting
the size of their parent ABD which is larger than what each split
block needs.

The above behavior isn't causing any bugs currently but can lead
to unexpected ABD sizes for people analyzing and/or working on
the ZIO codepath. This patch fixes this behavior by properly setting
the ABD size for split block ZIOs.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #14804

Details

Provenance
Serapheim Dimitropoulos <serapheim@delphix.com>Authored on May 2 2023, 12:18 AM
GitHub <noreply@github.com>Committed on May 2 2023, 12:18 AM
Parents
rG5a83f761c7c7: powerpc64: Support ELFv2 asm on Big Endian
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG0c93d86f01e5: Correct ABD size for split block ZIOs (authored by Serapheim Dimitropoulos <serapheim@delphix.com>).May 2 2023, 12:18 AM