equal
deleted
inserted
replaced
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)); |