{"id":816264,"url":"http://patchwork.ozlabs.org/api/covers/816264/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20170920102311.25736-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":"<20170920102311.25736-1-el13635@mail.ntua.gr>","list_archive_url":null,"date":"2017-09-20T10:23:08","name":"[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/20170920102311.25736-1-el13635@mail.ntua.gr/mbox/","series":[{"id":4124,"url":"http://patchwork.ozlabs.org/api/series/4124/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=4124","date":"2017-09-20T10:23:09","name":"add bdrv_co_drain_begin/end BlockDriver callbacks","version":1,"mbox":"http://patchwork.ozlabs.org/series/4124/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/816264/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 3xy23h22ffz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 00:21:20 +1000 (AEST)","from localhost ([::1]:48406 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 1dufsM-0000Il-9p\n\tfor incoming@patchwork.ozlabs.org; Wed, 20 Sep 2017 10:21:18 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:41618)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>) id 1dufAQ-0001zq-SI\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 09:35:55 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>) id 1dufAQ-000108-04\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 09:35:54 -0400","from smtp1.ntua.gr ([2001:648:2000:de::183]:20570)\n\tby eggs.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <el13635@mail.ntua.gr>)\n\tid 1dufAN-0000sM-Cy; Wed, 20 Sep 2017 09:35:51 -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 v8KANLKx022765\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=NOT); Wed, 20 Sep 2017 13:23:23 +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":"Wed, 20 Sep 2017 13:23:08 +0300","Message-Id":"<20170920102311.25736-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 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\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 |  4 +++-\n block/io.c                | 42 ++++++++++++++++++++++++++++++------------\n block/qed.c               |  6 +++---\n block/throttle.c          | 18 ++++++++++++++++++\n 4 files changed, 54 insertions(+), 16 deletions(-)"}