diff options
author | Liu Jiang <gerry@linux.alibaba.com> | 2021-02-19 18:59:54 +0800 |
---|---|---|
committer | Sergio Lopez <slp@sinrega.org> | 2021-03-01 12:50:56 +0100 |
commit | d748d5bdcf70b7d565a0600a57e8cf08976babb4 (patch) | |
tree | 8197ecde892613ac6c7343fc459e19593889f5f1 /.gitignore | |
parent | 8c6919bf60bd641398ddd53864fbc74d75548837 (diff) | |
download | vmm_vhost-d748d5bdcf70b7d565a0600a57e8cf08976babb4.tar.gz |
Introduce VhostBackendMut trait
Originally the VhostBackend trait is designed to take a mutable self,
which causes a common usage pattern Arc<RwLock<T: VhostBackend>>.
This pattern may enforce serialization among multiple threads. So
rename the original VhostBackend as VhostBackendMut, and introduce a
new VhostBackend trait with interior mutability to improve performance
by removing the serialization.
Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions