[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] qga: Cancel async snapshot before abort
From: |
Alexander Ivanov |
Subject: |
[PATCH 6/6] qga: Cancel async snapshot before abort |
Date: |
Wed, 25 Oct 2023 16:00:58 +0200 |
VSS requestor calls abort after the timeout of the backup operation
expires. In the result later the process hangs on some internal VSS
lock. Cancel async snapshot before abort.
Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
---
qga/vss-win32/requester.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/qga/vss-win32/requester.cpp b/qga/vss-win32/requester.cpp
index 9884c65e70..20680a42a1 100644
--- a/qga/vss-win32/requester.cpp
+++ b/qga/vss-win32/requester.cpp
@@ -533,6 +533,7 @@ void requester_freeze(int *num_vols, void *mountpoints,
ErrorSet *errset)
}
if (wait_status != WAIT_OBJECT_0) {
+ vss_ctx.pAsyncSnapshot->Cancel();
err_set(errset, E_FAIL,
"couldn't receive Frozen event from VSS provider");
goto out;
--
2.34.1
- [PATCH 1/6] qga: Add process termination functionality, (continued)
- [PATCH 1/6] qga: Add process termination functionality, Alexander Ivanov, 2023/10/25
- [PATCH 2/6] qga: Move command execution code to a separate function, Alexander Ivanov, 2023/10/25
- [PATCH 3/6] qga: Let run_command() work without input data, Alexander Ivanov, 2023/10/25
- [PATCH 4/6] qga: Add user creation functionality, Alexander Ivanov, 2023/10/25
- [PATCH 5/6] qga: Add timeout for fsfreeze, Alexander Ivanov, 2023/10/25
- [PATCH 6/6] qga: Cancel async snapshot before abort,
Alexander Ivanov <=