On 27.05.2016 12:53, Alberto Garcia wrote: > If we pause a block job and drain its BlockDriverState we want that > the job remains inactive until we call block_job_resume() again. > > However if we pause the job while it is sleeping then it will resume > when the sleep timer fires. > > This patch prevents that from happening by checking if the job has > been paused after it comes back from sleeping. > > Signed-off-by: Alberto Garcia <be...@igalia.com> > Suggested-by: Kevin Wolf <kw...@redhat.com> > --- > blockjob.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature