]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/multifd: Join the TLS thread
authorFabiano Rosas <farosas@suse.de>
Tue, 6 Feb 2024 21:51:13 +0000 (18:51 -0300)
committerPeter Xu <peterx@redhat.com>
Wed, 7 Feb 2024 01:53:18 +0000 (09:53 +0800)
commite1921f10d9afe651f4887284e85f6789b37e67d3
tree6d4f8c01de88f76afc1b44f61f88a914f92b680d
parent3205bebd4fc6dd501fb8b10c93ddce9da18e09db
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>
migration/multifd.c
migration/multifd.h