Do not initiate MMP writes while pool is suspended
While the pool is suspended on host A, it may be imported on host B. If host A continued to write MMP blocks, it would be blindly overwriting MMP blocks written by host B, and the blocks written by host A would have outdated txg information. Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Olaf Faaland <faaland1@llnl.gov> Closes #7182
This commit is contained in:
parent
a5369b61a2
commit
0d398b2564
@ -438,7 +438,7 @@ mmp_thread(void *arg)
|
|||||||
zio_suspend(spa, NULL);
|
zio_suspend(spa, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (multihost)
|
if (multihost && !suspended)
|
||||||
mmp_write_uberblock(spa);
|
mmp_write_uberblock(spa);
|
||||||
|
|
||||||
CALLB_CPR_SAFE_BEGIN(&cpr);
|
CALLB_CPR_SAFE_BEGIN(&cpr);
|
||||||
|
Loading…
Reference in New Issue
Block a user