migration/multifd: multifd_send_kick_main()
authorPeter Xu <peterx@redhat.com>
Fri, 2 Feb 2024 10:28:36 +0000 (18:28 +0800)
committerPeter Xu <peterx@redhat.com>
Mon, 5 Feb 2024 06:42:10 +0000 (14:42 +0800)
commit48c0f5d56fd2ff0a0cda23301637b742c690f59a
treedec3f9c788f73c26688a706643c8430c959acb7c
parent8888a552bf7af200e36ff123772547dfb4f133c4
migration/multifd: multifd_send_kick_main()

When a multifd sender thread hit errors, it always needs to kick the main
thread by kicking all the semaphores that it can be waiting upon.

Provide a helper for it and deduplicate the code.

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