[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/4] block: Prevent sleeping jobs from resuming
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH 3/4] block: Prevent sleeping jobs from resuming if they have been paused |
Date: |
Fri, 27 May 2016 13:07:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
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 <address@hidden>
> Suggested-by: Kevin Wolf <address@hidden>
> ---
> blockjob.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 0/4] Misc block job patches, Alberto Garcia, 2016/05/27
- [Qemu-devel] [PATCH 1/4] block: use the block job list in bdrv_drain_all(), Alberto Garcia, 2016/05/27
- [Qemu-devel] [PATCH 3/4] block: Prevent sleeping jobs from resuming if they have been paused, Alberto Garcia, 2016/05/27
- Re: [Qemu-devel] [PATCH 3/4] block: Prevent sleeping jobs from resuming if they have been paused,
Max Reitz <=
- [Qemu-devel] [PATCH 2/4] block: use the block job list in qmp_query_block_jobs(), Alberto Garcia, 2016/05/27
- [Qemu-devel] [PATCH 4/4] block: Create the commit block job before reopening any image, Alberto Garcia, 2016/05/27
- Re: [Qemu-devel] [PATCH 0/4] Misc block job patches, Max Reitz, 2016/05/27