mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
e78e34b36a
The DiskFile will need to be shared across multiple threads when running multiple queues across these threads. That's why it needs to be put inside an Arc. The reason for the Mutex is because execute() expects a mutable object implementing Read + Write + Seek. Unfortunately, this create a contention point as the object needs to be locked from each thread, reducing the performance gain we will get with multiple threads. The need for an immutable object would solve this problem, and it will be addressed later through follow up patches. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |