diff --git a/devices/src/virtio/block.rs b/devices/src/virtio/block.rs index e0784cce6b..43e81e0002 100644 --- a/devices/src/virtio/block.rs +++ b/devices/src/virtio/block.rs @@ -535,6 +535,10 @@ impl Worker { error!("Failed to flush the disk: {:?}", e); break 'poll; } + if let Err(e) = flush_timer.wait() { + error!("Failed to clear flush timer: {:?}", e); + break 'poll; + } } Token::QueueAvailable => { if let Err(e) = queue_evt.read() {