]> git.proxmox.com Git - zfsonlinux.git/blame - 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
CommitLineData
75b07eca
FG
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Olaf Faaland <faaland1@llnl.gov>
3Date: Thu, 22 Feb 2018 09:14:46 -0800
4Subject: [PATCH] Do not initiate MMP writes while pool is suspended
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9While the pool is suspended on host A, it may be imported on host B.
10If host A continued to write MMP blocks, it would be blindly
11overwriting MMP blocks written by host B, and the blocks written by
12host A would have outdated txg information.
13
14Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
15Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
16Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
17Closes #7182
18(cherry picked from commit b1f61f05b4b2edc77ec5f3d28d041d7b3c873f01)
19Signed-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
24diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c
25index 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--
382.14.2
39