src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
/*
 * Unlock the spa_t after adding or removing a vdev.  Besides undoing the
 * locking of spa_vdev_enter(), we also want make sure the transactions have
 * synced to disk, and then update the global configuration cache with the new
 * information.
 */
Unlock the spa_t after adding or removing a vdev.  Besides undoing the
locking of spa_vdev_enter(), we also want make sure the transactions have
synced to disk, and then update the global configuration cache with the new
information.
Unlock the spa_t after adding or removing a vdev . Besides undoing the locking of spa_vdev_enter () we also want make sure the transactions have synced to disk and then update the global configuration cache with the new information .
int
spa_vdev_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error)
{
	spa_vdev_config_exit(spa, vd, txg, error, FTAG);
	mutex_exit(&spa_namespace_lock);
	mutex_exit(&spa->spa_vdev_top_lock);
	return (error);
}
int spa_vdev_exit ( spa_t * spa , vdev_t * vd , uint64_t txg , int error ) { spa_vdev_config_exit ( spa , vd , txg , error , FTAG ) ; mutex_exit ( & spa_namespace_lock ) ; mutex_exit ( & spa -> spa_vdev_top_lock ) ; return ( error ) ; }
Unlock the spa_t after adding or removing a vdev.
Unlock the spa_t after adding or removing a vdev .