On Thu, Mar 4, 2021 at 11:54 AM Jens Axboe <axboe@xxxxxxxxx> wrote: > > I agree, here are the two current patches. Just need to add the signal > blocking, which I'd love to do in create_io_thread(), but seems to > require either an allocation or provide a helper to do it in the thread > itself (with an on-stack mask). Hmm. Why do you set SIGCHLD in create_io_thread()? Do you actually use it? Shouldn't IO thread exit be a silent thing? And why do you have those task_thread_bound() and task_thread_unbound() functions? As far as I can tell, you have those two functions just to set the process worker flags. Why don't you just do that now inside create_io_worker(), and the whole task_thread_[un]bound() thing goes away, and you just always start the IO thread in task_thread() itself? Linus