HomeFreeBSD

Fixing ABD struct allocation for FreeBSD

Description

Fixing ABD struct allocation for FreeBSD

In the event we are allocating a gang ABD in FreeBSD we are passing 0
to abd_alloc_struct(); however, this led to an allocation of ABD scatter
with 0 chunks. This left the gang ABD allocation 24 bytes smaller than
it should have been.

Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #10431

Details

Provenance
Brian Atkinson <batkinson@lanl.gov>Authored on Jun 16 2020, 5:05 PM
GitHub <noreply@github.com>Committed on Jun 16 2020, 5:05 PM
Parents
rGc13facb9c4a0: Fix FreeBSD condvar semantics
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG0a03495e3ee7: Fixing ABD struct allocation for FreeBSD (authored by Brian Atkinson <batkinson@lanl.gov>).Jun 16 2020, 5:05 PM