Skip to content

Commit 0b4a4e0

Browse files
committed
Try only increment on syncing approach
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 00dd870 commit 0b4a4e0

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

include/sys/txg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ extern boolean_t txg_stalled(struct dsl_pool *dp);
137137

138138
/* returns TRUE if someone is waiting for the next txg to sync */
139139
extern boolean_t txg_sync_waiting(struct dsl_pool *dp);
140-
extern uint64_t txg_cur_open(struct dsl_pool *dp);
141140

142141
extern void txg_verify(spa_t *spa, uint64_t txg);
143142

module/zfs/txg.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -867,12 +867,6 @@ txg_verify(spa_t *spa, uint64_t txg)
867867
}
868868
#endif
869869

870-
uint64_t
871-
txg_cur_open(dsl_pool_t *dp)
872-
{
873-
return (dp->dp_tx.tx_open_txg);
874-
}
875-
876870
/*
877871
* Per-txg object lists.
878872
*/

module/zfs/zio.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,9 +3318,8 @@ zio_write_gang_block(zio_t *pio, metaslab_class_t *mc)
33183318
} else if (any_failed && candidate > SPA_OLD_GANGBLOCKSIZE &&
33193319
spa_feature_is_enabled(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER) &&
33203320
!spa_feature_is_active(spa, SPA_FEATURE_DYNAMIC_GANG_HEADER)) {
3321-
dmu_tx_t *tx =
3322-
dmu_tx_create_assigned(spa->spa_dsl_pool, MIN(txg + 1,
3323-
txg_cur_open(spa->spa_dsl_pool)));
3321+
dmu_tx_t *tx = dmu_tx_create_assigned(spa->spa_dsl_pool,
3322+
spa_syncing_txg(spa) + 1);
33243323
dsl_sync_task_nowait(spa->spa_dsl_pool,
33253324
zio_update_feature,
33263325
(void *)SPA_FEATURE_DYNAMIC_GANG_HEADER, tx);

0 commit comments

Comments
 (0)