mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration/multifd: Join the TLS thread
We're currently leaking the resources of the TLS thread by not joining
it and also overwriting the p->thread pointer altogether.
Fixes: a1af605bd5
("migration/multifd: fix hangup with TLS-Multifd due to blocking handshake")
Cc: qemu-stable <qemu-stable@nongnu.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240206215118.6171-2-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
3205bebd4f
commit
e1921f10d9
2 changed files with 9 additions and 1 deletions
|
@ -73,6 +73,8 @@ typedef struct {
|
|||
char *name;
|
||||
/* channel thread id */
|
||||
QemuThread thread;
|
||||
QemuThread tls_thread;
|
||||
bool tls_thread_created;
|
||||
/* communication channel */
|
||||
QIOChannel *c;
|
||||
/* is the yank function registered */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue