]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/0039-Do-not-initiate-MMP-writes-while-pool-is-suspended.patch
bump version to 0.7.7-pve1~bpo9
[zfsonlinux.git] / zfs-patches / 0039-Do-not-initiate-MMP-writes-while-pool-is-suspended.patch
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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
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.
13
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>
17 Closes #7182
18 (cherry picked from commit b1f61f05b4b2edc77ec5f3d28d041d7b3c873f01)
19 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
20 ---
21 module/zfs/mmp.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
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);
30 }
31
32 - if (multihost)
33 + if (multihost && !suspended)
34 mmp_write_uberblock(spa);
35
36 CALLB_CPR_SAFE_BEGIN(&cpr);
37 --
38 2.14.2
39