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
> without worrying about the job lock.
>
> Update also the comments in blockjob.c (and move them in job.c).
>
> Note: at this stage, job_{lock/unlock} and job lock guard macros
> are *nop*.
>
> Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
> ---
> include/qemu/job.h | 21 +++++++++++
> blockjob.c | 20 -----------
> job.c | 88 ++++++++++++++++++++++++++++++++++++++++++++--
> 3 files changed, 107 insertions(+), 22 deletions(-)Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
