mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 09:33:01 +00:00
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:
parent
6d32cf0a8e
commit
76ca442212
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue