| 443 | } |
| 444 | |
| 445 | static void |
| 446 | vdev_mirror_scrub_done(zio_t *zio) |
| 447 | { |
| 448 | mirror_child_t *mc = zio->io_private; |
| 449 | |
| 450 | if (zio->io_error == 0) { |
| 451 | zio_t *pio; |
| 452 | zio_link_t *zl = NULL; |
| 453 | |
| 454 | mutex_enter(&zio->io_lock); |
| 455 | while ((pio = zio_walk_parents(zio, &zl)) != NULL) { |
| 456 | mutex_enter(&pio->io_lock); |
| 457 | ASSERT3U(zio->io_size, >=, pio->io_size); |
| 458 | abd_copy(pio->io_abd, zio->io_abd, pio->io_size); |
| 459 | mutex_exit(&pio->io_lock); |
| 460 | } |
| 461 | mutex_exit(&zio->io_lock); |
| 462 | } |
| 463 | |
| 464 | abd_free(zio->io_abd); |
| 465 | |
| 466 | mc->mc_error = zio->io_error; |
| 467 | mc->mc_tried = 1; |
| 468 | mc->mc_skipped = 0; |
| 469 | } |
| 470 | |
| 471 | /* |
| 472 | * Check the other, lower-index DVAs to see if they're on the same |
nothing calls this directly
no test coverage detected