Am 05/08/2022 um 10:14 schrieb Kevin Wolf: > Am 25.07.2022 um 09:38 hat Emanuele Giuseppe Esposito geschrieben: >> We are always using the given bs AioContext, so there is no need >> to take the job ones (which is identical anyways). >> This also reduces the point we need to check when protecting >> job.aio_context field. >> >> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> >> Reviewed-by: Stefan Hajnoczi <[email protected]> >> Signed-off-by: Emanuele Giuseppe Esposito <[email protected]> > > I'm not sure against which scenario this is actually protecting. The > only reason for not using job.aio_context seems to be if someone else > can change the job AioContext in parallel. However, if that is the case > (I don't think it is, but for the hypothetical case this patch seems to > address), the AioContext is not identical any more and the change is > wrong because we actually want things to run in the job AioContext - > otherwise accessing the BlockBackend from the job coroutine wouldn't be > possible. > > So I believe the current code expresses how we actually want to use the > BlockBackend and the change doesn't only protect nothing, but is even > misleading because it implies that the job can work with any AioContext, > which is not true. > > Kevin > Ok, dropped
- Re: [PATCH v10 06/21] job: move and upda... Kevin Wolf
- [PATCH v10 13/21] job: detect change of aioco... Emanuele Giuseppe Esposito
- Re: [PATCH v10 13/21] job: detect change... Kevin Wolf
- Re: [PATCH v10 13/21] job: detect ch... Emanuele Giuseppe Esposito
- [PATCH v10 15/21] blockjob.h: categorize fiel... Emanuele Giuseppe Esposito
- Re: [PATCH v10 15/21] blockjob.h: catego... Kevin Wolf
- [PATCH v10 16/21] blockjob: rename notifier c... Emanuele Giuseppe Esposito
- Re: [PATCH v10 16/21] blockjob: rename n... Kevin Wolf
- [PATCH v10 12/21] commit and mirror: create n... Emanuele Giuseppe Esposito
- Re: [PATCH v10 12/21] commit and mirror:... Kevin Wolf
- Re: [PATCH v10 12/21] commit and mir... Emanuele Giuseppe Esposito
- [PATCH v10 21/21] job: remove unused function... Emanuele Giuseppe Esposito
- Re: [PATCH v10 21/21] job: remove unused... Kevin Wolf
- [PATCH v10 17/21] blockjob: protect iostatus ... Emanuele Giuseppe Esposito
- Re: [PATCH v10 17/21] blockjob: protect ... Vladimir Sementsov-Ogievskiy
- Re: [PATCH v10 17/21] blockjob: prot... Emanuele Giuseppe Esposito
- Re: [PATCH v10 17/21] blockjob: protect ... Kevin Wolf
- [PATCH v10 19/21] block_job_query: remove ato... Emanuele Giuseppe Esposito
- Re: [PATCH v10 19/21] block_job_query: r... Kevin Wolf
- [PATCH v10 20/21] blockjob: remove unused fun... Emanuele Giuseppe Esposito
- Re: [PATCH v10 20/21] blockjob: remove u... Kevin Wolf
