migration: Add a wrapper to qemu_bh_schedule
commit699d9476a065881117004def5c052fbed21f862b
authorFabiano Rosas <farosas@suse.de>
Fri, 19 Jan 2024 23:39:21 +0000 (19 20:39 -0300)
committerPeter Xu <peterx@redhat.com>
Mon, 29 Jan 2024 03:02:12 +0000 (29 11:02 +0800)
treea918c89928a253791230ec02633ba211511131f8
parent9cf268965dba03b718c514adc06c2a5d444778e1
migration: Add a wrapper to qemu_bh_schedule

Wrap qemu_bh_schedule() to ensure we always hold a reference to the
current_migration object.

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