diff options
| author | Max Reitz | 2016-01-29 16:36:11 +0100 |
|---|---|---|
| committer | Max Reitz | 2016-02-02 17:50:46 +0100 |
| commit | 2c1d04e002dc91a6f34e8e683ea6b84f61a0b9fd (patch) | |
| tree | 677180fbee371dbf0aa97a28b0705a4f0b4274f1 /include | |
| parent | block: Make bdrv_close() static (diff) | |
| download | qemu-2c1d04e002dc91a6f34e8e683ea6b84f61a0b9fd.tar.gz qemu-2c1d04e002dc91a6f34e8e683ea6b84f61a0b9fd.tar.xz qemu-2c1d04e002dc91a6f34e8e683ea6b84f61a0b9fd.zip | |
block: Add list of all BlockDriverStates
We need this list so that bdrv_close_all() can keep track of which BDSs
are still open after having removed the BDSs from all of the BBs and
having released all monitor BDS references.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/block_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 8730cf63c7..1e4c51875e 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -443,6 +443,8 @@ struct BlockDriverState { QTAILQ_ENTRY(BlockDriverState) node_list; /* element of the list of "drives" the guest sees */ QTAILQ_ENTRY(BlockDriverState) device_list; + /* element of the list of all BlockDriverStates (all_bdrv_states) */ + QTAILQ_ENTRY(BlockDriverState) bs_list; QLIST_HEAD(, BdrvDirtyBitmap) dirty_bitmaps; int refcnt; |
