From a727848e0514dbaeb289f1ed50f7307dad611cfb Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Tue, 9 May 2023 11:54:01 -0400 Subject: [PATCH] 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 Signed-off-by: Alexander Motin Sponsored by: iXsystems, Inc. Closes #14823 --- module/zfs/zio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 700f879104..c367ef7211 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -2287,7 +2287,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; /*