HomeFreeBSD

zfs: Fix zvol_cdev_open locking

Description

zfs: Fix zvol_cdev_open locking

First open locking changes were correctly applied to zvol_geom_open but
incorrectly applied to zvol_cdev_open, causing spa_namespace_lock to be
held indefinitely.

Make the first open locking in zvol_cdev_open match zvol_geom_open.

This change has been accepted upstream in openzfs/zfs#13016 but is not
yet merged.

Reviewed by: mav
Fixes: e92ffd9b6268
Sponsored by: iXsystems, Inc.

Details

Provenance
freqlabsAuthored on Jan 26 2022, 6:33 PM
Parents
rG9acd521dbd0a: pkgbase: bhyve: Tag the kbdlayout file to be in the bhyve package
Branches
Unknown
Tags
Unknown