Re: [PATCH v6 13/18] job.h: define unlocked functions

2022-06-09 Thread Stefan Hajnoczi
On Mon, Mar 14, 2022 at 09:37:02AM -0400, Emanuele Giuseppe Esposito wrote: > /** > * @job: The job to enter. > + * Called with job_mutex *not* held. > * > * Continue the specified job by entering the coroutine. > + * Called with job_mutex lock *not* held. A similar comment was added just

[PATCH v6 13/18] job.h: define unlocked functions

2022-03-14 Thread Emanuele Giuseppe Esposito
All these functions assume that the lock is not held, and acquire it internally. These functions will be useful when job_lock is globally applied, as they will allow callers to access the job struct fields without worrying about the job lock. Update also the comments in blockjob.c (and move them