Skip to content

vhost_user_backend: Remove nested RwLock

Sebastian Hasler requested to merge haslersn/virtiofsd:backend-no-mut into main

Implement VhostUserBackend instead of VhostUserBackendMut, in order to avoid having a nested RwLock. When using VhostUserBackendMut, it needs to be wrapped in an RwLock (or Mutex) which doesn't make sense, because our implementation uses its own Mutex for synchronization.

This MR contains a 2nd commit that replaces the internal Mutex by an RwLock.

Edited by Sebastian Hasler

Merge request reports