Re: [RFC PATCH 12/15] jobs: protect jobs with job_lock/unlock

2021-11-02 Thread Vladimir Sementsov-Ogievskiy
29.10.2021 19:39, Emanuele Giuseppe Esposito wrote: Introduce the job locking mechanism through the whole job API, following the comments and requirements of job-monitor (assume lock is held) and job-driver (lock is not held). At this point, we do not care if the job lock is inside or outside th

[RFC PATCH 12/15] jobs: protect jobs with job_lock/unlock

2021-10-29 Thread Emanuele Giuseppe Esposito
Introduce the job locking mechanism through the whole job API, following the comments and requirements of job-monitor (assume lock is held) and job-driver (lock is not held). At this point, we do not care if the job lock is inside or outside the aiocontext. The aiocontext is going away and it is u