cloud-hypervisor/vhost_user_block
Sebastien Boeuf e78e34b36a vhost_user_blk: Make DiskFile sharable across threads
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>
2020-04-17 12:52:28 +02:00
..
src vhost_user_blk: Make DiskFile sharable across threads 2020-04-17 12:52:28 +02:00
Cargo.toml build(deps): bump libc from 0.2.68 to 0.2.69 2020-04-14 09:27:04 +01:00