On 26/01/2022 15:13, Hanna Reitz wrote: > On 21.01.22 18:05, Emanuele Giuseppe Esposito wrote: >> Signed-off-by: Emanuele Giuseppe Esposito <[email protected]> >> --- >> job.c | 9 +++++++++ >> 1 file changed, 9 insertions(+) > > Just curious, why did you remove the assertion in job_co_entry()? > (Looking at it again, it might have been nicer to swap it with the > assertion below it, so that `job != NULL` is asserted first, but other > than that...) > I think it's useless, job_co_entry runs in a coroutine in job->aio_context created and entered in job_start (its only caller), so there is no way that we are in a different aiocontext. Same as assert(job), I don't think the opaque pointer can ever be NULL. Thank you, Emanuele > (And since I’m already replying to this patch, might as well point out > s/funcion/function/ in the subject) > > Hanna >
- [PATCH v6 22/33] block/coroutines: I/O API Emanuele Giuseppe Esposito
- [PATCH v6 23/33] block_int-common.h: split func... Emanuele Giuseppe Esposito
- Re: [PATCH v6 23/33] block_int-common.h: s... Hanna Reitz
- [PATCH v6 24/33] block_int-common.h: assertions... Emanuele Giuseppe Esposito
- [PATCH v6 26/33] block_int-common.h: assertions... Emanuele Giuseppe Esposito
- Re: [PATCH v6 26/33] block_int-common.h: a... Hanna Reitz
- [PATCH v6 27/33] block-backend-common.h: split ... Emanuele Giuseppe Esposito
- [PATCH v6 29/33] job.h: assertions in the calle... Emanuele Giuseppe Esposito
- Re: [PATCH v6 29/33] job.h: assertions in ... Hanna Reitz
- Re: [PATCH v6 29/33] job.h: assertions... Emanuele Giuseppe Esposito
- Re: [PATCH v6 29/33] job.h: assert... Hanna Reitz
- [PATCH v6 20/33] block: rename bdrv_invalidate_... Emanuele Giuseppe Esposito
- Re: [PATCH v6 20/33] block: rename bdrv_in... Juan Quintela
- Re: [PATCH v6 20/33] block: rename bdr... Emanuele Giuseppe Esposito
- Re: [PATCH v6 20/33] block: rename... Paolo Bonzini
- Re: [PATCH v6 20/33] block: rename bdrv_in... Hanna Reitz
- [PATCH v6 13/33] include/block/blockjob.h: glob... Emanuele Giuseppe Esposito
- Re: [PATCH v6 13/33] include/block/blockjo... Kevin Wolf
- Re: [PATCH v6 13/33] include/block/blo... Emanuele Giuseppe Esposito
- [PATCH v6 28/33] job.h: split function pointers... Emanuele Giuseppe Esposito
