Skip to content

Commit

Permalink
DOSE-819 Panic on object store just after domain0 creation (openzfs#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
grwilson authored Dec 8, 2021
1 parent 7f24ea2 commit 76bd31c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/zfs/spa.c
Original file line number Diff line number Diff line change
Expand Up @@ -9202,7 +9202,7 @@ spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx)
uint64_t txg = tx->tx_txg;
bplist_t *free_bpl = &spa->spa_free_bplist[txg & TXG_MASK];

if (spa_is_object_based(spa)) {
if (spa_is_object_based(spa) && txg <= spa_final_dirty_txg(spa)) {
spa_sync_restore_mos_stats(spa);
}

Expand Down Expand Up @@ -9276,7 +9276,7 @@ spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx)
spa_sync_deferred_frees(spa, tx);
} while (dmu_objset_is_dirty(mos, txg));

if (spa_is_object_based(spa)) {
if (spa_is_object_based(spa) && txg <= spa_final_dirty_txg(spa)) {
spa_sync_save_mos_stats(spa);
}

Expand Down

0 comments on commit 76bd31c

Please sign in to comment.