[PATCH v2 8/8] block: do not take AioContext around reopen

2021-04-19 Thread Emanuele Giuseppe Esposito
Reopen needs to handle AioContext carefully due to calling bdrv_drain_all_begin/end. By not taking AioContext around calls to bdrv_reopen_multiple, we can drop the function's release/acquire pair and the AioContext argument too. Signed-off-by: Paolo Bonzini Signed-off-by: Emanuele Giuseppe Espos

Re: [PATCH v2 8/8] block: do not take AioContext around reopen

2021-04-21 Thread Paolo Bonzini
On 19/04/21 10:55, Emanuele Giuseppe Esposito wrote: Reopen needs to handle AioContext carefully due to calling bdrv_drain_all_begin/end. By not taking AioContext around calls to bdrv_reopen_multiple, we can drop the function's release/acquire pair and the AioContext argument too. So... I wrot

Re: [PATCH v2 8/8] block: do not take AioContext around reopen

2021-05-05 Thread Stefan Hajnoczi
On Mon, Apr 19, 2021 at 10:55:41AM +0200, Emanuele Giuseppe Esposito wrote: > block/block-backend.c | 4 > block/mirror.c| 9 - > blockdev.c| 19 ++- > 3 files changed, 6 insertions(+), 26 deletions(-) There are still many aio_context_acquire/rel