mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
ba9554389b
During analysis of the asynchrous block I/O handling it was observed that the majority of the time the completion events occur in the same order as submissions. Further the maximum number of inflight requests during the boot time is much lower than the size of the queue. Through the use of a double ended queue (VecDequeue) with a reasonable pre-allocation capacity we can have O(1) allocation free addition of items to the list of inflight requests and mostly O(1) matching of completed requests to submissions. Signed-off-by: Rob Bradford <robert.bradford@intel.com>