[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 0/2] nbd/server: Quiesce coroutines on context switch
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v4 0/2] nbd/server: Quiesce coroutines on context switch |
Date: |
Mon, 1 Feb 2021 16:31:34 +0100 |
Am 01.02.2021 um 13:50 hat Sergio Lopez geschrieben:
> This series allows the NBD server to properly switch between AIO contexts,
> having quiesced recv_coroutine and send_coroutine before doing the transition.
>
> We need this because we send back devices running in IO Thread owned contexts
> to the main context when stopping the data plane, something that can happen
> multiple times during the lifetime of a VM (usually during the boot sequence
> or
> on a reboot), and we drag the NBD server of the correspoing export with it.
>
> While there, fix also a problem caused by a cross-dependency between
> closing the export's client connections and draining the block
> layer. The visible effect of this problem was QEMU getting hung when
> the guest request a power off while there's an active NBD client.
Reviewed-by: Kevin Wolf <kwolf@redhat.com>