Skip to content

Commit

Permalink
undo sending transport_reset event on snapshot creation
Browse files Browse the repository at this point in the history
Signed-off-by: Amory Hoste <[email protected]>
  • Loading branch information
amohoste committed Nov 28, 2021
1 parent 53ba44f commit 7f68758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/devices/src/virtio/block/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct BlockState {
)]
cache_type: CacheTypeState,
root_device: bool,
pub disk_path: String,
disk_path: String,
virtio_state: VirtioDeviceState,
rate_limiter_state: RateLimiterState,
}
Expand Down
5 changes: 3 additions & 2 deletions src/vmm/src/device_manager/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ impl<'a> Persist<'a> for MMIODeviceManager {

// Send Transport event to reset connections if device
// is activated.
if vsock.is_activated() {
// TODO: temporarily disabled to avoid FC agent becoming unavailable when restoring snapshots
/*if vsock.is_activated() {
vsock.send_transport_reset_event().unwrap_or_else(|e| {
error!("Failed to send reset transport event: {:?}", e);
});
}
}*/

states.vsock_device = Some(ConnectedVsockState {
device_id: devid.clone(),
Expand Down

0 comments on commit 7f68758

Please sign in to comment.