From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy4wV-0001oM-V5 for qemu-devel@nongnu.org; Fri, 20 Jun 2014 15:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wy4wO-0002Nr-FO for qemu-devel@nongnu.org; Fri, 20 Jun 2014 15:57:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy4wO-0002NX-05 for qemu-devel@nongnu.org; Fri, 20 Jun 2014 15:57:40 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5KJvcMa010198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 20 Jun 2014 15:57:39 -0400 From: Max Reitz Date: Fri, 20 Jun 2014 21:57:31 +0200 Message-Id: <1403294254-10245-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH for-2.2 v3 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. 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(-) -- 2.0.0