Re: [RFC PATCH v2 04/14] job.h: define unlocked functions

2021-12-16 Thread Stefan Hajnoczi
On Thu, Nov 04, 2021 at 10:53:24AM -0400, Emanuele Giuseppe Esposito wrote: > 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 > with

[RFC PATCH v2 04/14] job.h: define unlocked functions

2021-11-04 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