Deleted Added
full compact
1114a1115
> dsl_scan_t *scn = spa->spa_dsl_pool->dp_scan;
1116,1117c1117
< zio_t *rio = zio_root(spa, NULL, NULL,
< ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE | ZIO_FLAG_SELF_HEAL);
---
> zio_t *rio;
1122a1123,1134
> rio = zio_root(spa, NULL, NULL,
> ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE | ZIO_FLAG_SELF_HEAL);
>
> /*
> * This function may cause an immediate scan of ddt blocks (see
> * the comment above dsl_scan_ddt() for details). We set the
> * scan's root zio here so that we can wait for any scan IOs in
> * addition to the regular ddt IOs.
> */
> ASSERT3P(scn->scn_zio_root, ==, NULL);
> scn->scn_zio_root = rio;
>
1131a1144
> scn->scn_zio_root = NULL;