Skip to content

Commit 98e15e7

Browse files
author
Paul Dagnelie
committed
Max of two txgs
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
1 parent 0b4a4e0 commit 98e15e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/zio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
33193319
spa_feature_is_enabled(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER) &&
33203320
!spa_feature_is_active(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER)) {
33213321
dmu_tx_t *tx = dmu_tx_create_assigned(spa->spa_dsl_pool,
3322-
spa_syncing_txg(spa) + 1);
3322+
MAX(txg, spa_syncing_txg(spa) + 1));
33233323
dsl_sync_task_nowait(spa->spa_dsl_pool,
33243324
zio_update_feature,
33253325
(void *)SPA_FEATURE_DYNAMIC_GANG_HEADER, tx);

0 commit comments

Comments
 (0)