From nobody Tue Feb 10 09:40:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 149920675442984.08803535617983; Tue, 4 Jul 2017 15:19:14 -0700 (PDT) Received: from localhost ([::1]:43191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSWA5-0004AZ-5g for importer@patchew.org; Tue, 04 Jul 2017 18:19:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSVxT-0000Se-0r for qemu-devel@nongnu.org; Tue, 04 Jul 2017 18:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSVxS-0000v8-5G for qemu-devel@nongnu.org; Tue, 04 Jul 2017 18:06:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33876) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSVxN-0000rS-GO; Tue, 04 Jul 2017 18:06:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 82F47C04B303; Tue, 4 Jul 2017 22:06:04 +0000 (UTC) Received: from localhost (unknown [10.36.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id F187970543; Tue, 4 Jul 2017 22:06:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 82F47C04B303 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=marcandre.lureau@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 82F47C04B303 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Wed, 5 Jul 2017 00:03:33 +0200 Message-Id: <20170704220346.29244-23-marcandre.lureau@redhat.com> In-Reply-To: <20170704220346.29244-1-marcandre.lureau@redhat.com> References: <20170704220346.29244-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 04 Jul 2017 22:06:04 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 22/35] sheepdog: mark coroutine_fn X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , "open list:Sheepdog" , "open list:Sheepdog" , Hitoshi Mitake , Jeff Cody , Max Reitz , Liu Yuan , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Marc-Andr=C3=A9 Lureau --- block/sheepdog.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 83bc43dde4..64ff275db9 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -481,7 +481,8 @@ static inline AIOReq *alloc_aio_req(BDRVSheepdogState *= s, SheepdogAIOCB *acb, return aio_req; } =20 -static void wait_for_overlapping_aiocb(BDRVSheepdogState *s, SheepdogAIOCB= *acb) +static void coroutine_fn +wait_for_overlapping_aiocb(BDRVSheepdogState *s, SheepdogAIOCB *acb) { SheepdogAIOCB *cb; =20 @@ -494,7 +495,8 @@ retry: } } =20 -static void sd_aio_setup(SheepdogAIOCB *acb, BDRVSheepdogState *s, +static void coroutine_fn +sd_aio_setup(SheepdogAIOCB *acb, BDRVSheepdogState *s, QEMUIOVector *qiov, int64_t sector_num, int nb_se= ctors, int type) { @@ -1954,7 +1956,8 @@ static int parse_block_size_shift(BDRVSheepdogState *= s, QemuOpts *opt) return 0; } =20 -static int sd_create(const char *filename, QemuOpts *opts, +static int coroutine_fn +sd_create(const char *filename, QemuOpts *opts, Error **errp) { Error *err =3D NULL; @@ -2431,7 +2434,8 @@ static void coroutine_fn sd_co_rw_vector(SheepdogAIOC= B *acb) } } =20 -static void sd_aio_complete(SheepdogAIOCB *acb) +static void coroutine_fn +sd_aio_complete(SheepdogAIOCB *acb) { if (acb->aiocb_type =3D=3D AIOCB_FLUSH_CACHE) { return; @@ -2905,7 +2909,8 @@ cleanup: return ret; } =20 -static int sd_save_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, +static int coroutine_fn +sd_save_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos) { BDRVSheepdogState *s =3D bs->opaque; @@ -2920,7 +2925,8 @@ static int sd_save_vmstate(BlockDriverState *bs, QEMU= IOVector *qiov, return ret; } =20 -static int sd_load_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, +static int coroutine_fn +sd_load_vmstate(BlockDriverState *bs, QEMUIOVector *qiov, int64_t pos) { BDRVSheepdogState *s =3D bs->opaque; --=20 2.13.1.395.gf7b71de06