mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
job: Move completion and cancellation to Job
This moves the top-level job completion and cancellation functions from BlockJob to Job. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
7eaa8fb57d
commit
3d70ff53b6
18 changed files with 171 additions and 209 deletions
4
block.c
4
block.c
|
@ -3362,7 +3362,9 @@ static void bdrv_close(BlockDriverState *bs)
|
|||
|
||||
void bdrv_close_all(void)
|
||||
{
|
||||
block_job_cancel_sync_all();
|
||||
/* TODO We do want to cancel all jobs instead of just block jobs on
|
||||
* shutdown, but bdrv_close_all() isn't the right place any more. */
|
||||
job_cancel_sync_all();
|
||||
nbd_export_close_all();
|
||||
|
||||
/* Drop references from requests still in flight, such as canceled block
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue