> @@ -2058,6 +2058,24 @@ zfs_ioc_objset_stats_impl(zfs_cmd_t *zc, objset_t *os)
>                       error = zvol_get_stats(os, nv);
>                       if (error == EIO)
>                               return (error);
> +                     /*
> +                      * If the zvol's parent dataset was being destroyed

I don't understand this part of the comment.  If the zvol's parent dataset was 
being destroyed, then the parent must have no children (because parent can not 
be destroyed while it has children).  Therefore this zvol does not exist so 
this can't happen.  The dp_config_rwlock (which we hold for reader) prevents 
any race condition with dataset deletion.

---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/60/files#r50215701
_______________________________________________
developer mailing list
[email protected]
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to