diff --git a/block/src/raw_async.rs b/block/src/raw_async.rs index 395d768a5..55b7355a6 100644 --- a/block/src/raw_async.rs +++ b/block/src/raw_async.rs @@ -6,7 +6,7 @@ use std::fs::File; use std::io::{Error, Seek, SeekFrom}; use std::os::unix::io::{AsRawFd, RawFd}; -use io_uring::{opcode, squeue, types, IoUring}; +use io_uring::{opcode, types, IoUring}; use vmm_sys_util::eventfd::EventFd; use crate::async_io::{ @@ -91,7 +91,6 @@ impl AsyncIo for RawFileAsync { &opcode::Readv::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32) .offset(offset.try_into().unwrap()) .build() - .flags(squeue::Flags::ASYNC) .user_data(user_data), ) .map_err(|_| AsyncIoError::ReadVectored(Error::other("Submission queue is full")))? @@ -120,7 +119,6 @@ impl AsyncIo for RawFileAsync { &opcode::Writev::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32) .offset(offset.try_into().unwrap()) .build() - .flags(squeue::Flags::ASYNC) .user_data(user_data), ) .map_err(|_| AsyncIoError::WriteVectored(Error::other("Submission queue is full")))? @@ -143,7 +141,6 @@ impl AsyncIo for RawFileAsync { sq.push( &opcode::Fsync::new(types::Fd(self.fd)) .build() - .flags(squeue::Flags::ASYNC) .user_data(user_data), ) .map_err(|_| AsyncIoError::Fsync(Error::other("Submission queue is full")))?