1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Olaf Faaland <faaland1@llnl.gov>
3 Date: Thu, 22 Feb 2018 09:14:46 -0800
4 Subject: [PATCH] Do not initiate MMP writes while pool is suspended
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 While the pool is suspended on host A, it may be imported on host B.
10 If host A continued to write MMP blocks, it would be blindly
11 overwriting MMP blocks written by host B, and the blocks written by
12 host A would have outdated txg information.
14 Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
15 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
16 Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
18 (cherry picked from commit b1f61f05b4b2edc77ec5f3d28d041d7b3c873f01)
19 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
21 module/zfs/mmp.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c
25 index 1dfb7c05b..d003d79de 100644
26 --- a/module/zfs/mmp.c
27 +++ b/module/zfs/mmp.c
28 @@ -437,7 +437,7 @@ mmp_thread(spa_t *spa)
29 zio_suspend(spa, NULL);
33 + if (multihost && !suspended)
34 mmp_write_uberblock(spa);
36 CALLB_CPR_SAFE_BEGIN(&cpr);