From 90190866250b4709ea2008c51f57fba731df7ea1 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 20 Jun 2022 14:49:57 +0000 Subject: [PATCH] block_util: drop Sync bound for DiskFile and AsyncIo Signed-off-by: Wei Liu --- block_util/src/async_io.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,