diff mbox

[v2,17/22] block: Make bdrv_drain_one() public

Message ID 1423507124-29809-18-git-send-email-mreitz@redhat.com
State New
Headers show

Commit Message

Max Reitz Feb. 9, 2015, 6:38 p.m. UTC
We will need it in block/block-backend.c.

Signed-off-by: Max Reitz <mreitz@redhat.com>
---
 block.c                   | 2 +-
 include/block/block_int.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/block.c b/block.c
index 8502957..3f3258c 100644
--- a/block.c
+++ b/block.c
@@ -1949,7 +1949,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 376ca2f..49d4fdd 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: