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 <f...@redhat.com>
---
 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


Reply via email to