On 17.05.2016 13:07, Paolo Bonzini wrote: > > > On 17/05/2016 12:52, Max Reitz wrote: >> A trivial way to do this would be to query the BDS's AIO context in >> blk_get_aio_context() and update the BB's context if they don't match. >> The more correct way would probably be to make bdrv_attach_aio_context() >> update its BB's (or BBs', in the future) AIO context. > > That could be another BdrvChild member, couldn't it?
I think it would rather require a new function pointer in BdrvChildRole (after Kevin's series, that is). As a side effect, that would allow us to propagate the context even up the BDS tree, which we currently do not. Max
signature.asc
Description: OpenPGP digital signature