qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/2] nbd/server: Quiesce coroutines on context switch


From: Sergio Lopez
Subject: [PATCH 0/2] nbd/server: Quiesce coroutines on context switch
Date: Fri, 4 Dec 2020 17:53:45 +0100

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.

Sergio Lopez (2):
  virtio-blk: Acquire context while switching them on dataplane start
  nbd/server: Quiesce coroutines on context switch

 hw/block/dataplane/virtio-blk.c |   2 +
 nbd/server.c                    | 120 ++++++++++++++++++++++++++++----
 2 files changed, 108 insertions(+), 14 deletions(-)

-- 
2.26.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]