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

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

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

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

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

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

[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