[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/16] block/io: Make bdrv_requests_pending() public
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 10/16] block/io: Make bdrv_requests_pending() public |
Date: |
Thu, 17 Sep 2015 15:48:14 +0200 |
Signed-off-by: Kevin Wolf <address@hidden>
---
block/io.c | 2 +-
include/block/block_int.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/io.c b/block/io.c
index d7e742a..81371e6 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 90971c0..4598101 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 */
--
1.8.3.1
- Re: [Qemu-devel] [PATCH 04/16] quorum: Convert to BdrvChild, (continued)
- [Qemu-devel] [PATCH 06/16] block: Remove bdrv_open_image(), Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 09/16] block: Split bdrv_move_feature_fields(), Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 08/16] block: Manage backing file references in bdrv_set_backing_hd(), Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 10/16] block/io: Make bdrv_requests_pending() public,
Kevin Wolf <=
- [Qemu-devel] [PATCH 11/16] block-backend: Add blk_set_bs(), Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 07/16] block: Convert bs->backing_hd to BdrvChild, Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 14/16] blockjob: Store device name at job creation, Kevin Wolf, 2015/09/17
- [Qemu-devel] [PATCH 13/16] block: Implement bdrv_append() without bdrv_swap(), Kevin Wolf, 2015/09/17