mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: Remove legacy async I/O API
Drop the borrowed iovec AsyncIo entry points now that all callers use owned operations. Rename the transitional owned batch and completion methods to the final trait names and remove the borrowed submission helpers from the queue wrappers. This removes a bunch of known safety foot-guns so future-us don't accidentally use them. Assisted-by: Codex:GPT-5.5 Signed-off-by: Dylan Reid <dgreid@fb.com>
This commit is contained in:
@@ -358,7 +358,7 @@ impl BlockEpollHandler {
|
||||
}
|
||||
|
||||
if !batch_requests.is_empty() {
|
||||
match self.disk_image.submit_batch_operations(batch_requests) {
|
||||
match self.disk_image.submit_batch_requests(batch_requests) {
|
||||
Ok(()) => {
|
||||
self.inflight_requests.extend(batch_inflight_requests);
|
||||
}
|
||||
@@ -447,7 +447,7 @@ impl BlockEpollHandler {
|
||||
let mut read_ops = Wrapping(0);
|
||||
let mut write_ops = Wrapping(0);
|
||||
|
||||
while let Some(mut completion) = self.disk_image.next_completion() {
|
||||
while let Some(mut completion) = self.disk_image.next_completed_request() {
|
||||
let result = completion.result;
|
||||
let desc_index = completion.user_data as u16;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user