]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Remove single parent assertion from zio_nowait().
authorAlexander Motin <mav@FreeBSD.org>
Tue, 9 May 2023 15:54:01 +0000 (11:54 -0400)
committerGitHub <noreply@github.com>
Tue, 9 May 2023 15:54:01 +0000 (08:54 -0700)
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 #14823

module/zfs/zio.c

index 365d34832c3ac17a60f408305c15b338ecb1b863..c17ca5e1d65162e9d8de616b2fc85a0c547f16ea 100644 (file)
@@ -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;
 
                /*