usr/src/uts/common/fs/zfs/vdev_label.c
changeset 4787 602d3f97842c
parent 4577 ed36b0e652bc
child 5329 33cb98223b2d
equal deleted inserted replaced
4786:9c83486af455 4787:602d3f97842c
   316 	nvlist_t *config = NULL;
   316 	nvlist_t *config = NULL;
   317 	vdev_phys_t *vp;
   317 	vdev_phys_t *vp;
   318 	zio_t *zio;
   318 	zio_t *zio;
   319 	int l;
   319 	int l;
   320 
   320 
   321 	ASSERT(spa_config_held(spa, RW_READER));
   321 	ASSERT(spa_config_held(spa, RW_READER) ||
       
   322 	    spa_config_held(spa, RW_WRITER));
   322 
   323 
   323 	if (vdev_is_dead(vd))
   324 	if (vdev_is_dead(vd))
   324 		return (NULL);
   325 		return (NULL);
   325 
   326 
   326 	vp = zio_buf_alloc(sizeof (vdev_phys_t));
   327 	vp = zio_buf_alloc(sizeof (vdev_phys_t));