mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_block: drop Sync bound for DiskFile
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -45,8 +45,8 @@ const BLK_SIZE: u32 = 512;
|
|||||||
// and the overhead of the emulation layer.
|
// and the overhead of the emulation layer.
|
||||||
const POLL_QUEUE_US: u128 = 50;
|
const POLL_QUEUE_US: u128 = 50;
|
||||||
|
|
||||||
trait DiskFile: Read + Seek + Write + Send + Sync {}
|
trait DiskFile: Read + Seek + Write + Send {}
|
||||||
impl<D: Read + Seek + Write + Send + Sync> DiskFile for D {}
|
impl<D: Read + Seek + Write + Send> DiskFile for D {}
|
||||||
|
|
||||||
type Result<T> = std::result::Result<T, Error>;
|
type Result<T> = std::result::Result<T, Error>;
|
||||||
type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
|
type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
|
||||||
|
|||||||
Reference in New Issue
Block a user