From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpKT-0006nw-97 for qemu-devel@nongnu.org; Mon, 26 Jan 2015 14:28:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFpKR-0001mp-1a for qemu-devel@nongnu.org; Mon, 26 Jan 2015 14:28:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFpKQ-0001mY-Rb for qemu-devel@nongnu.org; Mon, 26 Jan 2015 14:28:06 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0QJS6dh012418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 26 Jan 2015 14:28:06 -0500 From: Max Reitz Date: Mon, 26 Jan 2015 14:27:42 -0500 Message-Id: <1422300468-16216-16-git-send-email-mreitz@redhat.com> In-Reply-To: <1422300468-16216-1-git-send-email-mreitz@redhat.com> References: <1422300468-16216-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 15/21] block: Make bdrv_drain_one() public List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Markus Armbruster , Stefan Hajnoczi , Max Reitz We will need it in block/block-backend.c. Signed-off-by: Max Reitz --- block.c | 2 +- include/block/block_int.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index ca6a587..d4a3c79 100644 --- a/block.c +++ b/block.c @@ -1948,7 +1948,7 @@ static bool bdrv_requests_pending(BlockDriverState *bs) return false; } -static bool bdrv_drain_one(BlockDriverState *bs) +bool bdrv_drain_one(BlockDriverState *bs) { bool bs_busy; diff --git a/include/block/block_int.h b/include/block/block_int.h index 9842655..262b635 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -428,6 +428,8 @@ BlockDriver *bdrv_probe_all(const uint8_t *buf, int buf_size, void bdrv_set_io_limits(BlockDriverState *bs, ThrottleConfig *cfg); +bool bdrv_drain_one(BlockDriverState *bs); + /** * bdrv_add_before_write_notifier: -- 2.1.0