]> git.proxmox.com Git - mirror_zfs.git/commitdiff
MMP should not suspend pool in ztest
authorOlaf Faaland <faaland1@llnl.gov>
Mon, 13 Aug 2018 15:12:25 +0000 (08:12 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 13 Aug 2018 15:12:25 +0000 (08:12 -0700)
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 <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #7776

cmd/ztest/ztest.c

index de3b9848e22ad3ca6dea2cbbb6cd836a92a1ac72..8fb6200d55e63f9cad68223369c118c51a7d40fb 100644 (file)
@@ -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);