[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 09/16] jobs: remove aiocontext locks since the functions a
From: |
Emanuele Giuseppe Esposito |
Subject: |
Re: [PATCH v3 09/16] jobs: remove aiocontext locks since the functions are under BQL |
Date: |
Wed, 26 Jan 2022 17:18:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
On 19/01/2022 12:09, Paolo Bonzini wrote:
>> @@ -3707,15 +3707,11 @@ BlockJobInfoList *qmp_query_block_jobs(Error
>> **errp)
>> for (job = block_job_next(NULL); job; job =
>> block_job_next(job)) {
>> BlockJobInfo *value;
>> - AioContext *aio_context;
>> if (block_job_is_internal(job)) {
>> continue;
>> }
>
> block_job_next, block_job_query, etc. do not have the _locked suffix. Is
> this because all block_job_ functions need the job_mutex held, or just
> laziness? :)
>
I wasn't really sure whether to touch that API naming or not (+ laziness
:D )
But it makes sense to add _locked also there. Will do.
Thank you,
Emanuele
- Re: [PATCH v3 14/16] job.c: use job_get_aio_context(), (continued)
[PATCH v3 13/16] jobs: add job lock in find_* functions, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 10/16] jobs: protect jobs with job_lock/unlock, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 16/16] block_job_query: remove atomic read, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 09/16] jobs: remove aiocontext locks since the functions are under BQL, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 12/16] jobs: use job locks and helpers also in the unit tests, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 04/16] job.h: define unlocked functions, Emanuele Giuseppe Esposito, 2022/01/05
[PATCH v3 03/16] job.h: define locked functions, Emanuele Giuseppe Esposito, 2022/01/05
Re: [PATCH v3 00/16] job: replace AioContext lock with job_mutex, Paolo Bonzini, 2022/01/19