Skip to content

Commit

Permalink
Do not initiate MMP writes while pool is suspended
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ofaaland authored and tonyhutter committed Mar 14, 2018
1 parent e5ba614 commit b1f61f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/mmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ mmp_thread(spa_t *spa)
zio_suspend(spa, NULL);
}

if (multihost)
if (multihost && !suspended)
mmp_write_uberblock(spa);

CALLB_CPR_SAFE_BEGIN(&cpr);
Expand Down

0 comments on commit b1f61f0

Please sign in to comment.