Skip to content

Commit

Permalink
Revert "ztest fails assertion in zio_write_gang_member_ready()"
Browse files Browse the repository at this point in the history
This reverts commit 40d7e97 due
to potential regression, see issue #14413 for details.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
  • Loading branch information
behlendorf committed Jan 25, 2023
1 parent 9cd71c8 commit b3f9ea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zio.c
Expand Up @@ -2826,7 +2826,7 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
* have a third copy.
*/
gbh_copies = MIN(copies + 1, spa_max_replication(spa));
if (BP_IS_ENCRYPTED(bp) && gbh_copies >= SPA_DVAS_PER_BP)
if (gio->io_prop.zp_encrypt && gbh_copies >= SPA_DVAS_PER_BP)
gbh_copies = SPA_DVAS_PER_BP - 1;

int flags = METASLAB_HINTBP_FAVOR | METASLAB_GANG_HEADER;
Expand Down

0 comments on commit b3f9ea1

Please sign in to comment.