devices: vhost-user frontend: shorten thread name

The worker thread used to be named "vhost_user_virtio_{type}", which is
too long to fix in the 15 characters available for thread names on
Linux. Use the device's debug_label() instead, which follows the pattern
"vu-{type}", so the threads for different devices can be distinguished.

Change-Id: I8cadf54518724c5a764a0b28b0bc4144cd938d1e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5906571
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Frederick Mayle <fmayle@google.com>
This commit is contained in:
Daniel Verkamp 2024-10-02 16:20:44 -07:00 committed by crosvm LUCI
parent 6d32cf0a8e
commit 76ca442212

View file

@ -349,7 +349,7 @@ impl VhostUserFrontend {
"BUG: attempted to start worker twice"
);
let label = format!("vhost_user_virtio_{}", self.device_type);
let label = self.debug_label();
let mut backend_req_handler = self.backend_req_handler.take();
if let Some(handler) = &mut backend_req_handler {