[Qemu-devel] [PATCH 01/20] replication: interrupt failover if the main device is closed

2016-10-27 Thread Paolo Bonzini
Without this change, there is a race condition in tests/test-replication. Depending on how fast the failover job (active commit) runs, there is a chance of two bad things happening: 1) replication_done can be called after the secondary has been closed and hence when the BDRVReplicationState is

[Qemu-devel] [PATCH 01/20] replication: interrupt failover if the main device is closed

2016-10-17 Thread Paolo Bonzini
Without this change, there is a race condition in tests/test-replication. Depending on how fast the failover job (active commit) runs, there is a chance of two bad things happening: 1) replication_done can be called after the secondary has been closed and hence when the BDRVReplicationState is