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:
Dylan Reid
2026-05-19 14:25:12 -07:00
committed by Rob Bradford
parent 2da8507d21
commit 1b2326fde4
19 changed files with 54 additions and 831 deletions

View File

@@ -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;