From: yuanminghao <[email protected]>

pthread_setname_np() fails with ERANGE if the name is longer than
15 characters, so "mig/dst/snapshot_load" (21 characters) is
rejected and the thread keeps its default name.

Shorten it to "mig/dst/snapld" (15 characters) so the name is
actually applied.

Signed-off-by: yuanminghao <[email protected]>
Reviewed-by: Peter Xu <[email protected]>
Signed-off-by: Fabiano Rosas <[email protected]>
---
 migration/migration.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/migration.h b/migration/migration.h
index 683bc7bdd52..1329f6bba48 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -42,7 +42,7 @@
 #define  MIGRATION_THREAD_DST_FAULT         "mig/dst/fault"
 #define  MIGRATION_THREAD_DST_LISTEN        "mig/dst/listen"
 #define  MIGRATION_THREAD_DST_PREEMPT       "mig/dst/preempt"
-#define  MIGRATION_THREAD_DST_SNAPSHOT_LOAD "mig/dst/snapshot_load"
+#define  MIGRATION_THREAD_DST_SNAPSHOT_LOAD "mig/dst/snapld"
 
 struct PostcopyBlocktimeContext;
 typedef struct ThreadPool ThreadPool;
-- 
2.53.0


Reply via email to