[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1493594479-25329-1-git-send-email-kys@exchange.microsoft.com>
Date: Sun, 30 Apr 2017 16:21:14 -0700
From: kys@...hange.microsoft.com
To: davem@...emloft.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, devel@...uxdriverproject.org,
olaf@...fle.de, apw@...onical.com, jasowang@...hat.com,
leann.ogasawara@...onical.comi, marcelo.cerri@...onical.com,
sthemmin@...rosoft.com
Cc: Alex Ng <alexng@...sages.microsoft.com>,
Michael Gissing <mg@...lpeltz.net>,
"K. Y. Srinivasan" <kys@...rosoft.com>
Subject: [PATCH 1/6] Tools: hv: vss: Thaw the filesystem and continue if freeze call has timed out
From: Alex Ng <alexng@...sages.microsoft.com>
If a FREEZE operation takes too long, the driver may time out and move on
to another operation. The daemon is unaware of this and attempts to
notify the driver that the FREEZE succeeded. This results in an error from
the driver and the daemon leaves the filesystem in frozen state.
Fix this by thawing the filesystem and continuing.
Signed-off-by: Michael Gissing <mg@...lpeltz.net>
Signed-off-by: Alex Ng <alexng@...sages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@...rosoft.com>
---
tools/hv/hv_vss_daemon.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index e082980..7ba5419 100644
--- a/tools/hv/hv_vss_daemon.c
+++ b/tools/hv/hv_vss_daemon.c
@@ -261,7 +261,9 @@ int main(int argc, char *argv[])
if (len != sizeof(struct hv_vss_msg)) {
syslog(LOG_ERR, "write failed; error: %d %s", errno,
strerror(errno));
- exit(EXIT_FAILURE);
+
+ if (op == VSS_OP_FREEZE)
+ vss_operate(VSS_OP_THAW);
}
}
--
1.7.1
Powered by blists - more mailing lists