From: Kevin Wolf Date: Wed, 16 Sep 2015 14:08:17 +0000 (+0200) Subject: block/io: Make bdrv_requests_pending() public X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=439db28cf9d4c29c9a97040bc8e08f047ba7e0af;p=osstest%2Fqemu.git block/io: Make bdrv_requests_pending() public Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz Reviewed-by: Alberto Garcia Reviewed-by: Fam Zheng Reviewed-by: Stefan Hajnoczi --- diff --git a/block/io.c b/block/io.c index e094694e8..5311473a1 100644 --- a/block/io.c +++ b/block/io.c @@ -213,7 +213,7 @@ void bdrv_disable_copy_on_read(BlockDriverState *bs) } /* Check if any requests are in-flight (including throttled requests) */ -static bool bdrv_requests_pending(BlockDriverState *bs) +bool bdrv_requests_pending(BlockDriverState *bs) { if (!QLIST_EMPTY(&bs->tracked_requests)) { return true; diff --git a/include/block/block_int.h b/include/block/block_int.h index 90971c05b..459810108 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -667,5 +667,6 @@ bool blk_dev_is_medium_locked(BlockBackend *blk); void blk_dev_resize_cb(BlockBackend *blk); void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors); +bool bdrv_requests_pending(BlockDriverState *bs); #endif /* BLOCK_INT_H */