[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 3/6] job: minor changes to simplify locking
From: |
Eric Blake |
Subject: |
Re: [RFC PATCH 3/6] job: minor changes to simplify locking |
Date: |
Tue, 13 Jul 2021 12:56:14 -0500 |
User-agent: |
NeoMutt/20210205-569-37ed14 |
On Wed, Jul 07, 2021 at 06:58:10PM +0200, Emanuele Giuseppe Esposito wrote:
> Check for NULL id to job_get, so that in the next patch we can
> move job_get inside a single critical section of job_create.
>
> Also add missing notifier_list_init for the on_idle NotifierList,
> which seems to have been forgot.
forgotten
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> job.c | 16 ++++++++++++----
> 1 file changed, 12 insertions(+), 4 deletions(-)
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- [RFC PATCH 0/6] job: replace AioContext lock with job_mutex, Emanuele Giuseppe Esposito, 2021/07/07
- [RFC PATCH 3/6] job: minor changes to simplify locking, Emanuele Giuseppe Esposito, 2021/07/07
- [RFC PATCH 4/6] job.h: categorize job fields, Emanuele Giuseppe Esposito, 2021/07/07
- [RFC PATCH 5/6] job: use global job_mutex to protect struct Job, Emanuele Giuseppe Esposito, 2021/07/07
- [RFC PATCH 6/6] jobs: remove unnecessary AioContext aquire/release pairs, Emanuele Giuseppe Esposito, 2021/07/07
- Re: [RFC PATCH 0/6] job: replace AioContext lock with job_mutex, Stefan Hajnoczi, 2021/07/08