Received: from eggs.gnu.org ([2001:4830:134:3::10]:53976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wktjh-0002vx-G7 for qemu-devel@nongnu.org; Thu, 15 May 2014 07:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wktjb-00036e-B8 for qemu-devel@nongnu.org; Thu, 15 May 2014 07:22:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wktjb-00036B-2h for qemu-devel@nongnu.org; Thu, 15 May 2014 07:21:59 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4FBLv8x006023 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 15 May 2014 07:21:57 -0400 From: Fam Zheng Date: Thu, 15 May 2014 19:22:05 +0800 Message-Id: <1400152926-31187-2-git-send-email-famz@redhat.com> In-Reply-To: <1400152926-31187-1-git-send-email-famz@redhat.com> References: <1400152926-31187-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 1/2] block: Move declaration of bdrv_get_aio_context to block.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Stefan Hajnoczi block_int.h is for block layer and block drivers, other code shouldn't include it. But similar to bdrv_set_aio_context, bdrv_get_aio_context should also be accessible from outside of block layer. Move it. Signed-off-by: Fam Zheng --- include/block/block.h | 7 +++++++ include/block/block_int.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/block/block.h b/include/block/block.h index d223e33..6676d1f 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -534,6 +534,13 @@ int bdrv_debug_resume(BlockDriverState *bs, const char *tag); bool bdrv_debug_is_suspended(BlockDriverState *bs, const char *tag); /** + * bdrv_get_aio_context: + * + * Returns: the currently bound #AioContext + */ +AioContext *bdrv_get_aio_context(BlockDriverState *bs); + +/** * bdrv_set_aio_context: * * Changes the #AioContext used for fd handlers, timers, and BHs by this diff --git a/include/block/block_int.h b/include/block/block_int.h index 47c79b3..a9301d5 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -397,13 +397,6 @@ void bdrv_add_before_write_notifier(BlockDriverState *bs, NotifierWithReturn *notifier); /** - * bdrv_get_aio_context: - * - * Returns: the currently bound #AioContext - */ -AioContext *bdrv_get_aio_context(BlockDriverState *bs); - -/** * bdrv_detach_aio_context: * * May be called from .bdrv_detach_aio_context() to detach children from the -- 1.9.2