From 3ef80eefff37d92315b030008edc853512d487da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Fri, 26 Mar 2021 21:18:18 +0100 Subject: [PATCH] zed: set names for all threads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #11807 --- cmd/zed/agents/zfs_agents.c | 1 + cmd/zed/agents/zfs_mod.c | 1 + cmd/zed/zed_disk_event.c | 1 + 3 files changed, 3 insertions(+) diff --git a/cmd/zed/agents/zfs_agents.c b/cmd/zed/agents/zfs_agents.c index 67b7951b0e..35dd818ff8 100644 --- a/cmd/zed/agents/zfs_agents.c +++ b/cmd/zed/agents/zfs_agents.c @@ -392,6 +392,7 @@ zfs_agent_init(libzfs_handle_t *zfs_hdl) list_destroy(&agent_events); zed_log_die("Failed to initialize agents"); } + pthread_setname_np(g_agents_tid, "agents"); } void diff --git a/cmd/zed/agents/zfs_mod.c b/cmd/zed/agents/zfs_mod.c index 4a58e1f1db..b564f2b12a 100644 --- a/cmd/zed/agents/zfs_mod.c +++ b/cmd/zed/agents/zfs_mod.c @@ -918,6 +918,7 @@ zfs_slm_init() return (-1); } + pthread_setname_np(g_zfs_tid, "enum-pools"); list_create(&g_device_list, sizeof (struct pendingdev), offsetof(struct pendingdev, pd_node)); diff --git a/cmd/zed/zed_disk_event.c b/cmd/zed/zed_disk_event.c index 174d245232..6ec566cff3 100644 --- a/cmd/zed/zed_disk_event.c +++ b/cmd/zed/zed_disk_event.c @@ -379,6 +379,7 @@ zed_disk_event_init() return (-1); } + pthread_setname_np(g_mon_tid, "udev monitor"); zed_log_msg(LOG_INFO, "zed_disk_event_init"); return (0);