{"id":817790,"url":"http://patchwork.ozlabs.org/api/covers/817790/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20170923111411.18626-1-el13635@mail.ntua.gr/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170923111411.18626-1-el13635@mail.ntua.gr>","list_archive_url":null,"date":"2017-09-23T11:14:08","name":"[v3,0/3] add bdrv_co_drain_begin/end BlockDriver callbacks","submitter":{"id":71571,"url":"http://patchwork.ozlabs.org/api/people/71571/?format=json","name":"Manos Pitsidianakis","email":"el13635@mail.ntua.gr"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20170923111411.18626-1-el13635@mail.ntua.gr/mbox/","series":[{"id":4757,"url":"http://patchwork.ozlabs.org/api/series/4757/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4757","date":"2017-09-23T11:14:08","name":"add bdrv_co_drain_begin/end BlockDriver callbacks","version":3,"mbox":"http://patchwork.ozlabs.org/series/4757/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/817790/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xznp00f3Rz9tXB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Sep 2017 21:15:35 +1000 (AEST)","from localhost ([::1]:34468 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1dviPF-0004T8-3h\n\tfor incoming@patchwork.ozlabs.org; Sat, 23 Sep 2017 07:15:33 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:56673)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>) id 1dviOQ-0004Kl-B9\n\tfor qemu-devel@nongnu.org; Sat, 23 Sep 2017 07:14:43 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>) id 1dviOO-0001BA-Iw\n\tfor qemu-devel@nongnu.org; Sat, 23 Sep 2017 07:14:42 -0400","from smtp1.ntua.gr ([2001:648:2000:de::183]:13165)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>)\n\tid 1dviOI-00016Y-65; Sat, 23 Sep 2017 07:14:34 -0400","from mail.ntua.gr (carp0.noc.ntua.gr [147.102.222.60])\n\t(authenticated bits=0)\n\tby smtp1.ntua.gr (8.15.2/8.15.2) with ESMTPSA id v8NBESZ6074775\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=NOT); Sat, 23 Sep 2017 14:14:28 +0300 (EEST)\n\t(envelope-from el13635@mail.ntua.gr)"],"X-Authentication-Warning":"smtp1.ntua.gr: Host carp0.noc.ntua.gr\n\t[147.102.222.60] claimed to be mail.ntua.gr","From":"Manos Pitsidianakis <el13635@mail.ntua.gr>","To":"qemu-devel <qemu-devel@nongnu.org>","Date":"Sat, 23 Sep 2017 14:14:08 +0300","Message-Id":"<20170923111411.18626-1-el13635@mail.ntua.gr>","X-Mailer":"git-send-email 2.11.0","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2001:648:2000:de::183","Subject":"[Qemu-devel] [PATCH v3 0/3] add bdrv_co_drain_begin/end BlockDriver\n\tcallbacks","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Kevin Wolf <kwolf@redhat.com>, Fam Zheng <famz@redhat.com>,\n\tStefan Hajnoczi <stefanha@redhat.com>,\n\tqemu-block <qemu-block@nongnu.org>, Max Reitz <mreitz@redhat.com>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"This patch series renames bdrv_co_drain to bdrv_co_drain_begin and adds a new \nbdrv_co_drain_end callback to match bdrv_drained_begin/end and \ndrained_begin/end of BdrvChild. This is needed because the throttle driver \n(block/throttle.c) needs a way to mark the end of the drain in order to toggle \nio_limits_disabled correctly.\n\nBased-on: <20170918202529.28379-1-el13635@mail.ntua.gr>\n    \"block/throttle-groups.c: allocate RestartData on the heap\"\n    Which fixes a coroutine crash in block/throttle-groups.c\n\nv3:\n  fixed commit message typo in first patch [Fam]\n  rephrased doc comment based on mailing discussion\nv2: \n  add doc for callbacks and change order of request polling for completion \n  [Stefan]\n\nManos Pitsidianakis (3):\n  block: add bdrv_co_drain_end callback\n  block: rename bdrv_co_drain to bdrv_co_drain_begin\n  block/throttle.c: add bdrv_co_drain_begin/end callbacks\n\n include/block/block_int.h | 13 ++++++++++---\n block/io.c                | 48 +++++++++++++++++++++++++++++++++--------------\n block/qed.c               |  6 +++---\n block/throttle.c          | 18 ++++++++++++++++++\n 4 files changed, 65 insertions(+), 20 deletions(-)"}