diff options
author | Olaf Faaland <[email protected]> | 2018-02-22 09:14:46 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-02-22 09:14:46 -0800 |
commit | 0d398b25644ff1eb67141629bc6e5aead95edeba (patch) | |
tree | 1412f69b0b069e6b73ce2c8f8a60150d093dbf52 | |
parent | a5369b61a24cf75d8188af8ee554123cf7fae14c (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #7182
-rw-r--r-- | module/zfs/mmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c index 986e4f7dc..cce6b77ce 100644 --- a/module/zfs/mmp.c +++ b/module/zfs/mmp.c @@ -438,7 +438,7 @@ mmp_thread(void *arg) zio_suspend(spa, NULL); } - if (multihost) + if (multihost && !suspended) mmp_write_uberblock(spa); CALLB_CPR_SAFE_BEGIN(&cpr); |