summary refs log tree commit diff stats
path: root/docs/sphinx/kernellog.py
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-02-02 18:28:49 +0800
committerPeter Xu <peterx@redhat.com>2024-02-05 14:42:10 +0800
commit3ab4441d97af59ea09ee015d68c4770704b2b34f (patch)
tree11fe4044245090447f0a56e33b17b9789d210454 /docs/sphinx/kernellog.py
parent859ebaf346e8b5dece6cf255c604fe953d8ec9ab (diff)
downloadfocaccia-qemu-3ab4441d97af59ea09ee015d68c4770704b2b34f.tar.gz
focaccia-qemu-3ab4441d97af59ea09ee015d68c4770704b2b34f.zip
migration/multifd: Split multifd_send_terminate_threads()
Split multifd_send_terminate_threads() into two functions:

  - multifd_send_set_error(): used when an error happened on the sender
    side, set error and quit state only

  - multifd_send_terminate_threads(): used only by the main thread to kick
    all multifd send threads out of sleep, for the last recycling.

Use multifd_send_set_error() in the three old call sites where only the
error will be set.

Use multifd_send_terminate_threads() in the last one where the main thread
will kick the multifd threads at last in multifd_save_cleanup().

Both helpers will need to set quitting=1.

Suggested-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240202102857.110210-16-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'docs/sphinx/kernellog.py')
0 files changed, 0 insertions, 0 deletions