migration/multifd: Cleanup outgoing_args in state destroy
commit72b90b96872acc5d00f9c16dfc196543349361da
authorPeter Xu <peterx@redhat.com>
Thu, 22 Feb 2024 09:53:00 +0000 (22 17:53 +0800)
committerPeter Xu <peterx@redhat.com>
Wed, 28 Feb 2024 03:31:28 +0000 (28 11:31 +0800)
tree00e7e16319bb768a3adc5b61bcaf6ff41363434c
parent770de49c00fa9eb262473f282c92979b47b7fd22
migration/multifd: Cleanup outgoing_args in state destroy

outgoing_args is a global cache of socket address to be reused in multifd.
Freeing the cache in per-channel destructor is more or less a hack.  Move
it to multifd_send_cleanup_state() so it only get checked once.  Use a
small helper to do so because it's internal of socket.c.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240222095301.171137-5-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/multifd.c
migration/socket.c
migration/socket.h