vhost_user_backend: Change handle_event as immutable

By changing the mutability of this function, after adapting all
backends, we should be able to implement multithreads with
multiqueues support without hitting a bottleneck on the backend
locking.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-04-09 13:14:05 +02:00
parent 8f434df1fb
commit 40e4dc6339
4 changed files with 5 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ impl<F: FileSystem + Send + Sync + 'static> VhostUserBackend for VhostUserFsBack
}
fn handle_event(
&mut self,
&self,
device_event: u16,
evset: epoll::Events,
vrings: &[Arc<RwLock<Vring>>],