[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 32/42] job: Move completion and cancellation to
From: |
Max Reitz |
Subject: |
Re: [Qemu-devel] [PATCH 32/42] job: Move completion and cancellation to Job |
Date: |
Wed, 16 May 2018 12:52:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 2018-05-15 14:59, Kevin Wolf wrote:
> Am 14.05.2018 um 22:53 hat Max Reitz geschrieben:
>> On 2018-05-09 18:26, Kevin Wolf wrote:
>>> This moves the top-level job completion and cancellation functions from
>>> BlockJob to Job.
>>>
>>> Signed-off-by: Kevin Wolf <address@hidden>
>
>>> @@ -3362,7 +3362,7 @@ static void bdrv_close(BlockDriverState *bs)
>>>
>>> void bdrv_close_all(void)
>>> {
>>> - block_job_cancel_sync_all();
>>> + job_cancel_sync_all();
>>
>> Do we really want to cancel jobs that might have nothing to do with the
>> block layer?
>
> Yes, though I admit it's a bit ugly to do it here. Alternatively, I
> could assert here that no jobs are running and pull the
> job_cancel_sync_all() into the callers. For vl.c, this is trivial.
> qemu-nbd.c uses 'atexit(bdrv_close_all);', so I'd have to introduce a
> wrapper function that calls both job_cancel_sync_all() and
> bdrv_close_all().
>
> Would you prefer that?
Yes, I'd like that.
Thanks!
Max
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 35/42] job: Add job_is_ready(), (continued)
- [Qemu-devel] [PATCH 35/42] job: Add job_is_ready(), Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 33/42] job: Add job_yield(), Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 31/42] job: Move transactions to Job, Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 32/42] job: Move completion and cancellation to Job, Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 36/42] job: Add job_transition_to_ready(), Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 37/42] job: Move progress fields to Job, Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 39/42] job: Add lifecycle QMP commands, Kevin Wolf, 2018/05/09
- [Qemu-devel] [PATCH 40/42] job: Add query-jobs QMP command, Kevin Wolf, 2018/05/09