@gnomon @mwl The specific situation seems to be a fairly obscure corner case; I'm honestly kind of impressed the ZFS test suite has a test for it. The commit¹ and the comments in the test script² have more details, and I think people are unlikely to hit this in practice (and if you do, it looks like things are already going wrong).
¹ https://github.com/openzfs/zfs/commit/323d497d324c3673a235003bca641bb83d32bb85
² https://github.com/openzfs/zfs/blob/master/tests/zfs-tests/tests/functional/failmode/failmode_create_continue.ksh