diff --git a/virtio-devices/src/block.rs b/virtio-devices/src/block.rs index 524af407e..8ada18fc1 100644 --- a/virtio-devices/src/block.rs +++ b/virtio-devices/src/block.rs @@ -346,8 +346,11 @@ Setting device status to 'NEEDS_RESET' and stopping processing queues until rese ) } } + batch_inflight_requests.push((desc_chain.head_index(), request)); + } else { + self.inflight_requests + .push_back((desc_chain.head_index(), request)); } - batch_inflight_requests.push((desc_chain.head_index(), request)); } else { let status = match result { Ok(_) => VIRTIO_BLK_S_OK,