From a9d680752278670a2db134b56c6cc8c2ef8d8c24 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Fri, 8 Aug 2025 16:02:48 -0700 Subject: [PATCH] block: batch submit requests for fixed VHD Updated VHD async implementation to call the batch submit method via the raw async IO layer. Signed-off-by: Muminul Islam --- block/src/fixed_vhd_async.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/block/src/fixed_vhd_async.rs b/block/src/fixed_vhd_async.rs index 6b51d070f..ac02e21bf 100644 --- a/block/src/fixed_vhd_async.rs +++ b/block/src/fixed_vhd_async.rs @@ -12,7 +12,7 @@ use crate::async_io::{ }; use crate::fixed_vhd::FixedVhd; use crate::raw_async::RawFileAsync; -use crate::BlockBackend; +use crate::{BatchRequest, BlockBackend}; pub struct FixedVhdDiskAsync(FixedVhd); @@ -106,4 +106,12 @@ impl AsyncIo for FixedVhdAsync { fn next_completed_request(&mut self) -> Option<(u64, i32)> { self.raw_file_async.next_completed_request() } + + fn batch_requests_enabled(&self) -> bool { + true + } + + fn submit_batch_requests(&mut self, batch_request: &[BatchRequest]) -> AsyncIoResult<()> { + self.raw_file_async.submit_batch_requests(batch_request) + } }