mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
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 <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
This commit is contained in:
parent
94b197a0a5
commit
5200237711
@ -2770,6 +2770,8 @@ ztest_mmp_enable_disable(ztest_ds_t *zd, uint64_t id)
|
|||||||
spa_config_enter(spa, SCL_CONFIG, FTAG, RW_READER);
|
spa_config_enter(spa, SCL_CONFIG, FTAG, RW_READER);
|
||||||
mutex_enter(&spa->spa_props_lock);
|
mutex_enter(&spa->spa_props_lock);
|
||||||
|
|
||||||
|
zfs_multihost_fail_intervals = 0;
|
||||||
|
|
||||||
if (!spa_multihost(spa)) {
|
if (!spa_multihost(spa)) {
|
||||||
spa->spa_multihost = B_TRUE;
|
spa->spa_multihost = B_TRUE;
|
||||||
mmp_thread_start(spa);
|
mmp_thread_start(spa);
|
||||||
|
Loading…
Reference in New Issue
Block a user