mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
block: Add BDS.never_freeze
The commit and the mirror block job must be able to drop their filter node at any point. However, this will not be possible if any of the BdrvChild links to them is frozen. Therefore, we need to prevent them from ever becoming frozen. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-id: 20190703172813.6868-2-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
95667c3be0
commit
e5182c1c57
4 changed files with 19 additions and 0 deletions
|
@ -885,6 +885,9 @@ struct BlockDriverState {
|
|||
|
||||
/* Only read/written by whoever has set active_flush_req to true. */
|
||||
unsigned int flushed_gen; /* Flushed write generation */
|
||||
|
||||
/* BdrvChild links to this node may never be frozen */
|
||||
bool never_freeze;
|
||||
};
|
||||
|
||||
struct BlockBackendRootState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue