zed: set names for all threads
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11807
This commit is contained in:
parent
583e320546
commit
3ef80eefff
|
@ -392,6 +392,7 @@ zfs_agent_init(libzfs_handle_t *zfs_hdl)
|
||||||
list_destroy(&agent_events);
|
list_destroy(&agent_events);
|
||||||
zed_log_die("Failed to initialize agents");
|
zed_log_die("Failed to initialize agents");
|
||||||
}
|
}
|
||||||
|
pthread_setname_np(g_agents_tid, "agents");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -918,6 +918,7 @@ zfs_slm_init()
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pthread_setname_np(g_zfs_tid, "enum-pools");
|
||||||
list_create(&g_device_list, sizeof (struct pendingdev),
|
list_create(&g_device_list, sizeof (struct pendingdev),
|
||||||
offsetof(struct pendingdev, pd_node));
|
offsetof(struct pendingdev, pd_node));
|
||||||
|
|
||||||
|
|
|
@ -379,6 +379,7 @@ zed_disk_event_init()
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pthread_setname_np(g_mon_tid, "udev monitor");
|
||||||
zed_log_msg(LOG_INFO, "zed_disk_event_init");
|
zed_log_msg(LOG_INFO, "zed_disk_event_init");
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
|
Loading…
Reference in New Issue