diff options
author | George Wilson <[email protected]> | 2017-04-07 13:50:18 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-04-09 16:12:35 -0700 |
commit | 3b7f360c9606079c518829c5bd82fe8f8a89e3c0 (patch) | |
tree | e5dad1e8833519127ebee8597ea8f1ec746fbb2b /include/sys/spa.h | |
parent | 4c3c6b6c73e31c789a2c0ce2a70912c077f15421 (diff) |
OpenZFS 8023 - Panic destroying a metaslab deferred range tree
Authored by: George Wilson <[email protected]>
Approved by: Dan McDonald <[email protected]>
Reviewed by: Brad Lewis <[email protected]>
Reviewed by: Matt Ahrens <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: Saso Kiselkov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Ported-by: Giuseppe Di Natale <[email protected]>
We don't want to dirty any data when we're in the final txgs of the pool
export logic. This change introduces checks to make sure that no data is
dirtied after a certain point. It also addresses the culprit of this
specific bug – the space map cannot be upgraded when we're in final
stages of pool export. If we encounter a space map that wants to be
upgraded in this phase, then we simply ignore the request as it will get
retried the next time we set the fragmentation metric on that metaslab.
OpenZFS-issue: https://www.illumos.org/issues/8023
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/2ef00f5
Closes #5991
Diffstat (limited to 'include/sys/spa.h')
-rw-r--r-- | include/sys/spa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index b6e124faa..e2f27ed60 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -802,6 +802,7 @@ extern uint64_t spa_load_guid(spa_t *spa); extern uint64_t spa_last_synced_txg(spa_t *spa); extern uint64_t spa_first_txg(spa_t *spa); extern uint64_t spa_syncing_txg(spa_t *spa); +extern uint64_t spa_final_dirty_txg(spa_t *spa); extern uint64_t spa_version(spa_t *spa); extern pool_state_t spa_state(spa_t *spa); extern spa_load_state_t spa_load_state(spa_t *spa); |