From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxLC9-000571-BU for qemu-devel@nongnu.org; Wed, 18 Jun 2014 15:06:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxLC3-0001on-2o for qemu-devel@nongnu.org; Wed, 18 Jun 2014 15:06:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxLC2-0001oD-RB for qemu-devel@nongnu.org; Wed, 18 Jun 2014 15:06:47 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5IJ6kpV032409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 18 Jun 2014 15:06:46 -0400 From: Max Reitz Date: Wed, 18 Jun 2014 21:06:40 +0200 Message-Id: <1403118403-14397-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] nbd: Adapt for dataplane List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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. v2: - Patch 1: Drop NBDClient::restart_write; checking whether NBDClient::send_coroutine is not NULL suffices [Paolo] git-backport-diff against v1: 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:[0005] [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 | 105 +++++++++++++++++++++++++++++++++++++--------- 3 files changed, 183 insertions(+), 19 deletions(-) -- 2.0.0