qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] nbd: Adapt for dataplane
@ 2014-06-13 22:30 Max Reitz
  2014-06-13 22:30 ` [Qemu-devel] [PATCH 1/3] nbd: Drop nbd_can_read() Max Reitz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Max Reitz @ 2014-06-13 22:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Paolo Bonzini, Stefan Hajnoczi, Max Reitz

For the NBD server to work with dataplane, it needs to correctly access
the exported BDS. It makes the most sense to run both in the same
AioContext, therefore this series implements methods for tracking a
BDS's AioContext and makes NBD make use of this for keeping the clients
connected to that BDS in the same AioContext.

This series differs from the RFC as follows:
- The first patch for export_set_name() has been dropped.
- nbd_can_read() has been dropped and all attempts on implementing the
  required functionality for aio_set_fd_handler() as well. This is now
  implemented directly in NBD by unregistering the read handler whenever
  NBD cannot read.
- Renamed "AIO followers" to "AIO notifiers".

I tested this patch as Stefan suggested, that is, created IO load in the
guest with multiple dds from the block devices and then read from random
addresses over NBD (two block devices and one NBD client per device). I
didn't run into any problems and the NBD code indeed did attach and
detach from the respective AIO contexts, so this time I'm more confident
that it indeed does work.


Max Reitz (3):
  nbd: Drop nbd_can_read()
  block: Add AIO context notifiers
  nbd: Follow the BDS' AIO context

 block.c                   |  56 ++++++++++++++++++++++++
 include/block/block_int.h |  41 ++++++++++++++++++
 nbd.c                     | 108 ++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 186 insertions(+), 19 deletions(-)

-- 
2.0.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-14 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-13 22:30 [Qemu-devel] [PATCH 0/3] nbd: Adapt for dataplane Max Reitz
2014-06-13 22:30 ` [Qemu-devel] [PATCH 1/3] nbd: Drop nbd_can_read() Max Reitz
2014-06-14  7:57   ` Paolo Bonzini
2014-06-14 18:31     ` Max Reitz
2014-06-13 22:30 ` [Qemu-devel] [PATCH 2/3] block: Add AIO context notifiers Max Reitz
2014-06-13 22:30 ` [Qemu-devel] [PATCH 3/3] nbd: Follow the BDS' AIO context Max Reitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).