Re: [PATCH v3 01/16] job.c: make job_mutex and job_lock/unlock() public

2022-01-19 Thread Paolo Bonzini
On 1/19/22 10:56, Paolo Bonzini wrote: On 1/5/22 15:01, Emanuele Giuseppe Esposito wrote: job mutex will be used to protect the job struct elements and list, replacing AioContext locks. Right now use a shared lock for all jobs, in order to keep things simple. Once the AioContext lock is gone, w

Re: [PATCH v3 01/16] job.c: make job_mutex and job_lock/unlock() public

2022-01-19 Thread Paolo Bonzini
On 1/5/22 15:01, Emanuele Giuseppe Esposito wrote: job mutex will be used to protect the job struct elements and list, replacing AioContext locks. Right now use a shared lock for all jobs, in order to keep things simple. Once the AioContext lock is gone, we can introduce per-job locks. Not eve

[PATCH v3 01/16] job.c: make job_mutex and job_lock/unlock() public

2022-01-05 Thread Emanuele Giuseppe Esposito
job mutex will be used to protect the job struct elements and list, replacing AioContext locks. Right now use a shared lock for all jobs, in order to keep things simple. Once the AioContext lock is gone, we can introduce per-job locks. To simplify the switch from aiocontext to job lock, introduce