On Thu, 04/06 18:20, Kevin Wolf wrote: > For example, another case where this happens is that block jobs follow > their nodes if the AioContext changes and even implement > .attached_aio_context callbacks when they need to drag additional nodes > into the new context. With your change, the job coroutine would remember > the old coroutine and move back to the old context in some cases!
You are right, in v2 I'll store the co->ctx at enter time explicitly. This way a context change on a BDS will also move the block job's co. Fam