From nobody Sat May 18 15:38:19 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1603872551; cv=none; d=zohomail.com; s=zohoarc; b=Gh0ZKfPcxVXcvlCGwYHzXqohUtFnSQwNWvPtNV0IJZjm0Wtrad0Uftwve2udM3zrW0qgW+11uMPhzCDHianlFEQxCqJDxHZpMw6VD1EYhxt5EdC/7/4adG6V46KHpT/eP8XImDZ2bYAi5Fb4qiATqW0/QbA3hJqnNMmcFSlnFO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603872551; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=sD6zRSq9ttzYtHl1idaO4JdP/XlMNrBMnwDxiUcVHxk=; b=UjxAXFrlE5vihf6Y1mBATbR5lOdLSiS9SOcjs3nWf5zY6Weiuy8/gPlYkIfZ/QAgnqCnFcgZib6J06jcGXEG7CkRePSOexAqAY0jV7B59K9imv58f44k6BlVoRh6K/o/AvhF7IVpIPX9F01LBr3SjfrgFZ7TVgqWCz7cHV5H8aI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1603872551102790.0486079946695; Wed, 28 Oct 2020 01:09:11 -0700 (PDT) Received: from localhost ([::1]:53762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXgW5-0004fd-3X for importer@patchew.org; Wed, 28 Oct 2020 04:09:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXgUm-0003yE-N7 for qemu-devel@nongnu.org; Wed, 28 Oct 2020 04:07:48 -0400 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:35788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kXgUl-00069u-03 for qemu-devel@nongnu.org; Wed, 28 Oct 2020 04:07:48 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-99-c8vNvxLkPAeSOTyyt22uoQ-1; Wed, 28 Oct 2020 04:07:42 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5EFED801F95; Wed, 28 Oct 2020 08:07:41 +0000 (UTC) Received: from [192.168.1.34] (ovpn-115-161.ams2.redhat.com [10.36.115.161]) by smtp.corp.redhat.com (Postfix) with ESMTP id E934955793; Wed, 28 Oct 2020 08:07:35 +0000 (UTC) X-MC-Unique: c8vNvxLkPAeSOTyyt22uoQ-1 Subject: [PATCH] block: Move bdrv_drain_all_end_quiesce() to block_int.h From: Greg Kurz To: qemu-devel@nongnu.org Date: Wed, 28 Oct 2020 09:07:34 +0100 Message-ID: <160387245480.131299.13430357162209598411.stgit@bahia> User-Agent: StGit/0.21 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=groug@kaod.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kaod.org Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: softfail client-ip=207.211.30.44; envelope-from=groug@kaod.org; helo=us-smtp-delivery-44.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 04:07:44 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Stefan Hajnoczi , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" This function is really an internal helper for bdrv_close(). Update its doc comment to make this clear and make the function private. Signed-off-by: Greg Kurz Reviewed-by: Stefan Hajnoczi --- As suggested by Stefan here: https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg08235.html --- include/block/block.h | 6 ------ include/block/block_int.h | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/block/block.h b/include/block/block.h index 809987017631..d16c401cb44e 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -779,12 +779,6 @@ void bdrv_drained_end(BlockDriverState *bs); */ void bdrv_drained_end_no_poll(BlockDriverState *bs, int *drained_end_count= er); =20 -/** - * End all quiescent sections started by bdrv_drain_all_begin(). This is - * only needed when deleting a BDS before bdrv_drain_all_end() is called. - */ -void bdrv_drain_all_end_quiesce(BlockDriverState *bs); - /** * End a quiescent section started by bdrv_subtree_drained_begin(). */ diff --git a/include/block/block_int.h b/include/block/block_int.h index 38cad9d15c50..95d9333be14f 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -1407,4 +1407,13 @@ static inline BlockDriverState *bdrv_primary_bs(Bloc= kDriverState *bs) return child_bs(bdrv_primary_child(bs)); } =20 +/** + * End all quiescent sections started by bdrv_drain_all_begin(). This is + * needed when deleting a BDS before bdrv_drain_all_end() is called. + * + * NOTE: this is an internal helper for bdrv_close() *only*. No one else + * should call it. + */ +void bdrv_drain_all_end_quiesce(BlockDriverState *bs); + #endif /* BLOCK_INT_H */