We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4a4e0 commit 98e15e7Copy full SHA for 98e15e7
module/zfs/zio.c
@@ -3319,7 +3319,7 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
3319
spa_feature_is_enabled(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER) &&
3320
!spa_feature_is_active(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER)) {
3321
dmu_tx_t *tx = dmu_tx_create_assigned(spa->spa_dsl_pool,
3322
- spa_syncing_txg(spa) + 1);
+ MAX(txg, spa_syncing_txg(spa) + 1));
3323
dsl_sync_task_nowait(spa->spa_dsl_pool,
3324
zio_update_feature,
3325
(void *)SPA_FEATURE_DYNAMIC_GANG_HEADER, tx);
0 commit comments