summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorOlaf Faaland <[email protected]>2018-08-13 08:12:25 -0700
committerBrian Behlendorf <[email protected]>2018-08-13 08:12:25 -0700
commit5200237711cf17d7da41dd3a89330328eafb5e87 (patch)
treed748659e4a4faa51733a374bd3e2acd9e5e8c359 /cmd
parent94b197a0a503d0153babe155fe3f099af662c626 (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
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ztest/ztest.c2
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);