Skip to content

Commit

Permalink
Remove single parent assertion from zio_nowait().
Browse files Browse the repository at this point in the history
We only need to know if ZIO has any parent there.  We do not care if
it has more than one, but use of zio_unique_parent() == NULL asserts
that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by:	Alexander Motin <mav@FreeBSD.org>
Sponsored by:	iXsystems, Inc.
Closes openzfs#14823
  • Loading branch information
amotin authored and andrewc12 committed May 15, 2023
1 parent 4def618 commit 9b2c182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ zio_nowait(zio_t *zio)
ASSERT3P(zio->io_executor, ==, NULL);

if (zio->io_child_type == ZIO_CHILD_LOGICAL &&
zio_unique_parent(zio) == NULL) {
list_is_empty(&zio->io_parent_list)) {
zio_t *pio;

/*
Expand Down

0 comments on commit 9b2c182

Please sign in to comment.