diff options
author | Olaf Faaland <[email protected]> | 2018-08-13 08:12:25 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-08-13 08:12:25 -0700 |
commit | 5200237711cf17d7da41dd3a89330328eafb5e87 (patch) | |
tree | d748659e4a4faa51733a374bd3e2acd9e5e8c359 | |
parent | 94b197a0a503d0153babe155fe3f099af662c626 (diff) |
MMP should not suspend pool in ztest
When running ztest, never suspend the pool due to failed or delayed
MMP writes.
There are many sources of long delays within ztest, such as device
opens, closes, etc. which in combination, may delay MMP writes too
long and cause MMP to suspend the pool.
Some of these delays also affect real pools, and should be fixed.
That is being worked separately.
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #7776
-rw-r--r-- | cmd/ztest/ztest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index de3b9848e..8fb6200d5 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -2770,6 +2770,8 @@ ztest_mmp_enable_disable(ztest_ds_t *zd, uint64_t id) spa_config_enter(spa, SCL_CONFIG, FTAG, RW_READER); mutex_enter(&spa->spa_props_lock); + zfs_multihost_fail_intervals = 0; + if (!spa_multihost(spa)) { spa->spa_multihost = B_TRUE; mmp_thread_start(spa); |