src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
/*
 * Lock the given spa_t for the purpose of adding or removing a vdev.
 * Grabs the global spa_namespace_lock plus the spa config lock for writing.
 * It returns the next transaction group for the spa_t.
 */
Lock the given spa_t for the purpose of adding or removing a vdev.
Grabs the global spa_namespace_lock plus the spa config lock for writing.
It returns the next transaction group for the spa_t.
Lock the given spa_t for the purpose of adding or removing a vdev . Grabs the global spa_namespace_lock plus the spa config lock for writing . It returns the next transaction group for the spa_t .
uint64_t
spa_vdev_enter(spa_t *spa)
{
	mutex_enter(&spa->spa_vdev_top_lock);
	mutex_enter(&spa_namespace_lock);
	return (spa_vdev_config_enter(spa));
}
uint64_t spa_vdev_enter ( spa_t * spa ) { mutex_enter ( & spa -> spa_vdev_top_lock ) ; mutex_enter ( & spa_namespace_lock ) ; return ( spa_vdev_config_enter ( spa ) ) ; }
Lock the given spa_t for the purpose of adding or removing a vdev.
Lock the given spa_t for the purpose of adding or removing a vdev .