Modify the virtio-blk to async

This commit is contained in:
LI Qing
2024-04-10 16:50:49 +08:00
committed by Tate, Hongliang Tian
parent 2616335755
commit b7131e721c
8 changed files with 263 additions and 207 deletions

View File

@ -74,10 +74,6 @@ mod test {
}
impl BlockDevice for ExfatMemoryDisk {
fn handle_irq(&self) {
info!("ExfatMemoryDisk handle irq");
}
fn enqueue(&self, bio: SubmittedBio) -> core::prelude::v1::Result<(), BioEnqueueError> {
let start_device_ofs = bio.sid_range().start.to_raw() as usize * SECTOR_SIZE;
let mut cur_device_ofs = start_device_ofs;