summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorAlex Ng2017-05-01 01:21:14 +0200
committerGreg Kroah-Hartman2017-05-18 16:55:28 +0200
commit6113e3d28149dee33f10e92df6a16efb2b9cf473 (patch)
tree714daf066b284589403cd2e06c9c6a8686099f7b /tools/hv
parentLinux 4.12-rc1 (diff)
downloadkernel-qcow2-linux-6113e3d28149dee33f10e92df6a16efb2b9cf473.tar.gz
kernel-qcow2-linux-6113e3d28149dee33f10e92df6a16efb2b9cf473.tar.xz
kernel-qcow2-linux-6113e3d28149dee33f10e92df6a16efb2b9cf473.zip
Tools: hv: vss: Thaw the filesystem and continue if freeze call has timed out
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@faulpeltz.net> Signed-off-by: Alex Ng <alexng@messages.microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv')
-rw-r--r--tools/hv/hv_vss_daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index e0829809c897..7ba54195934c 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);
}
}