diff --git a/block_util/src/async_io.rs b/block_util/src/async_io.rs index e00f03ad1..3eb5b8961 100644 --- a/block_util/src/async_io.rs +++ b/block_util/src/async_io.rs @@ -104,7 +104,7 @@ impl DiskTopology { pub type DiskFileResult = std::result::Result; -pub trait DiskFile: Send + Sync { +pub trait DiskFile: Send { fn size(&mut self) -> DiskFileResult; fn new_async_io(&self, ring_depth: u32) -> DiskFileResult>; fn topology(&mut self) -> DiskTopology { @@ -127,7 +127,7 @@ pub enum AsyncIoError { pub type AsyncIoResult = std::result::Result; -pub trait AsyncIo: Send + Sync { +pub trait AsyncIo: Send { fn notifier(&self) -> &EventFd; fn read_vectored( &mut self,