[PATCH v2] erofs-utils: lib: name worker threads erofs_compress

Gao Xiang hsiangkao at linux.alibaba.com
Tue Mar 17 04:00:06 AEDT 2026



On 2026/3/17 00:54, Nithurshen wrote:

..

>   static void *worker_thread(void *arg)
>   {
> @@ -9,6 +12,12 @@ static void *worker_thread(void *arg)
>   	struct erofs_work *work;
>   	void *tlsp = NULL;
>   
> +#if defined(__linux__)
> +	prctl(PR_SET_NAME, "erofs_compress");
> +#elif defined(__APPLE__)
> +	pthread_setname_np("erofs_compress");
> +#endif

I'm not happy with this part, please read the v1 reply.



More information about the Linux-erofs mailing list