HomeFreeBSD

Fix two abd_gang_add_gang() issues.

Description

Fix two abd_gang_add_gang() issues.

  • There is no reason to assert that added gang is not empty. It

may be weird to add an empty gang, but it is legal.

  • When moving chain list from the added gang clear its size, or it

will trigger assertion in abd_verify() when that gang is freed.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #14816

Details

Provenance
mavAuthored on May 5 2023, 4:17 PM
GitHub <noreply@github.com>Committed on May 5 2023, 4:17 PM
Parents
rG6fa6bb051c2b: Simplify and optimize random_int_between().
Branches
Unknown
Tags
Unknown

Event Timeline