Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-27 Thread Stefan Reiter
On 5/26/20 6:42 PM, Kevin Wolf wrote: Am 25.05.2020 um 18:41 hat Kevin Wolf geschrieben: Am 25.05.2020 um 16:18 hat Stefan Reiter geschrieben: On 5/12/20 4:43 PM, Kevin Wolf wrote: Coroutine functions that are entered through bdrv_run_co() are already safe to call from synchronous code in a di

Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-26 Thread Kevin Wolf
Am 25.05.2020 um 18:41 hat Kevin Wolf geschrieben: > Am 25.05.2020 um 16:18 hat Stefan Reiter geschrieben: > > On 5/12/20 4:43 PM, Kevin Wolf wrote: > > > Coroutine functions that are entered through bdrv_run_co() are already > > > safe to call from synchronous code in a different AioContext becaus

Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-25 Thread Kevin Wolf
Am 25.05.2020 um 16:18 hat Stefan Reiter geschrieben: > On 5/12/20 4:43 PM, Kevin Wolf wrote: > > Coroutine functions that are entered through bdrv_run_co() are already > > safe to call from synchronous code in a different AioContext because > > bdrv_coroutine_enter() will schedule them in the cont

Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-25 Thread Stefan Reiter
On 5/12/20 4:43 PM, Kevin Wolf wrote: Coroutine functions that are entered through bdrv_run_co() are already safe to call from synchronous code in a different AioContext because bdrv_coroutine_enter() will schedule them in the context of the node. However, the coroutine fastpath still requires t

Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-12 Thread Kevin Wolf
Am 12.05.2020 um 18:02 hat Thomas Lamprecht geschrieben: > On 5/12/20 4:43 PM, Kevin Wolf wrote: > > Coroutine functions that are entered through bdrv_run_co() are already > > safe to call from synchronous code in a different AioContext because > > bdrv_coroutine_enter() will schedule them in the c

Re: [RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-12 Thread Thomas Lamprecht
On 5/12/20 4:43 PM, Kevin Wolf wrote: > Coroutine functions that are entered through bdrv_run_co() are already > safe to call from synchronous code in a different AioContext because > bdrv_coroutine_enter() will schedule them in the context of the node. > > However, the coroutine fastpath still re

[RFC PATCH 2/3] block: Allow bdrv_run_co() from different AioContext

2020-05-12 Thread Kevin Wolf
Coroutine functions that are entered through bdrv_run_co() are already safe to call from synchronous code in a different AioContext because bdrv_coroutine_enter() will schedule them in the context of the node. However, the coroutine fastpath still requires that we're already in the right AioContex