Re: [PATCH v9 14/21] jobs: protect job.aio_context with BQL and job_mutex

2022-07-19 Thread Emanuele Giuseppe Esposito
Am 11/07/2022 um 16:19 schrieb Vladimir Sementsov-Ogievskiy: > On 7/6/22 23:15, Emanuele Giuseppe Esposito wrote: >> In order to make it thread safe, implement a "fake rwlock", >> where we allow reads under BQL *or* job_mutex held, but >> writes only under BQL *and* job_mutex. >> >> The only wri

Re: [PATCH v9 14/21] jobs: protect job.aio_context with BQL and job_mutex

2022-07-11 Thread Vladimir Sementsov-Ogievskiy
On 7/6/22 23:15, Emanuele Giuseppe Esposito wrote: In order to make it thread safe, implement a "fake rwlock", where we allow reads under BQL *or* job_mutex held, but writes only under BQL *and* job_mutex. The only write we have is in child_job_set_aio_ctx also in job_create of course, but it