Re: [RFC PATCH 5/6] job: use global job_mutex to protect struct Job

2021-07-12 Thread Emanuele Giuseppe Esposito
On 08/07/2021 14:56, Stefan Hajnoczi wrote: On Wed, Jul 07, 2021 at 06:58:12PM +0200, Emanuele Giuseppe Esposito wrote: This lock is going to replace most of the AioContext locks in the job and blockjob, so that a Job can run in an arbitrary AioContext. Signed-off-by: Emanuele Giuseppe Espos

Re: [RFC PATCH 5/6] job: use global job_mutex to protect struct Job

2021-07-08 Thread Stefan Hajnoczi
On Wed, Jul 07, 2021 at 06:58:12PM +0200, Emanuele Giuseppe Esposito wrote: > This lock is going to replace most of the AioContext locks > in the job and blockjob, so that a Job can run in an arbitrary > AioContext. > > Signed-off-by: Emanuele Giuseppe Esposito > --- > include/block/blockjob_int

[RFC PATCH 5/6] job: use global job_mutex to protect struct Job

2021-07-07 Thread Emanuele Giuseppe Esposito
This lock is going to replace most of the AioContext locks in the job and blockjob, so that a Job can run in an arbitrary AioContext. Signed-off-by: Emanuele Giuseppe Esposito --- include/block/blockjob_int.h | 1 + include/qemu/job.h | 2 + block/backup.c | 4 + bl