[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 02/20] block: Consistently call bdrv_activate() outside corou
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH 02/20] block: Consistently call bdrv_activate() outside coroutine |
Date: |
Mon, 1 May 2023 11:21:27 -0400 |
On Tue, Apr 25, 2023 at 07:31:40PM +0200, Kevin Wolf wrote:
> Migration code can call bdrv_activate() in coroutine context, whereas
> other callers call it outside of coroutines. As it calls other code that
> is not supposed to run in coroutines, standardise on running outside of
> coroutines.
>
> This adds a no_co_wrapper to switch to the main loop before calling
> bdrv_activate().
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> include/block/block-global-state.h | 6 +++++-
> block/block-backend.c | 10 +++++++++-
> 2 files changed, 14 insertions(+), 2 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 02/20] block: Consistently call bdrv_activate() outside coroutine,
Stefan Hajnoczi <=