Message ID | 20210201125032.44713-1-slp@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | nbd/server: Quiesce coroutines on context switch | expand |
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>