]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
job: drop job_drain
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 29 Aug 2019 09:09:53 +0000 (12:09 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Sep 2019 06:58:43 +0000 (08:58 +0200)
commitbb0c94099382b52734a4a4f3c060e90c9a2ac6cf
treeac02b2959676479a50414ee2144fc433681526b1
parentb70d08205b2e4044c529eefc21df2c8ab61b473b
job: drop job_drain

In job_finish_sync job_enter should be enough for a job to make some
progress and draining is a wrong tool for it. So use job_enter directly
here and drop job_drain with all related staff not used more.

Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tested-by: John Snow <jsnow@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
12 files changed:
block/backup.c
block/commit.c
block/mirror.c
block/stream.c
blockjob.c
include/block/blockjob_int.h
include/qemu/job.h
job.c
tests/test-bdrv-drain.c
tests/test-block-iothread.c
tests/test-blockjob-txn.c
tests/test-blockjob.c