Skip to content

Commit a727848

Browse files
amotinbehlendorf
authored andcommitted
Remove single parent assertion from zio_nowait().
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 <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #14823
1 parent b2ede77 commit a727848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/zio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ zio_nowait(zio_t *zio)
22872287
ASSERT3P(zio->io_executor, ==, NULL);
22882288

22892289
if (zio->io_child_type == ZIO_CHILD_LOGICAL &&
2290-
zio_unique_parent(zio) == NULL) {
2290+
list_is_empty(&zio->io_parent_list)) {
22912291
zio_t *pio;
22922292

22932293
/*

0 commit comments

Comments
 (0)