Skip to content

nbd: Adapt for dataplane

Max Reitz qemu-devel 3 versions – Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesApplied
  2. v23 patches 6 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Patch 1: Drop aio_notify(), because aio_set_fd_handler() will call it anyway [Stefan]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3nbd: Drop nbd_can_read()nbd.c+53 -190 replies
2/3block: Add AIO context notifiersblock.c include/block/block_int.h+97 -00 replies
3/3nbd: Follow the BDS' AIO contextnbd.c+31 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchStefan Hajnoczi
SeriesR-b
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH for-2.2 v3 0/3] nbd: Adapt for dataplane

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 breaks compilation of NBD on Windows, because aio_set_fd_handler() is not available there yet. It should therefore not be merged until that function is available (which will probably not happen before qemu 2.2).

v3:
- Patch 1: Drop aio_notify(), because aio_set_fd_handler() will call it anyway [Stefan]

v2:
- Patch 1: Drop NBDClient::restart_write; checking whether NBDClient::send_coroutine is not NULL suffices [Paolo]

git-backport-diff against v2:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/3:[0006] [FC] 'nbd: Drop nbd_can_read()' 002/3:[----] [--] 'block: Add AIO context notifiers' 003/3:[----] [--] 'nbd: Follow the BDS' AIO context'

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                     | 103 +++++++++++++++++++++++++++++++++++++---------
 3 files changed, 181 insertions(+), 19 deletions(-)
Signature · 1 line
2.0.0