Re: [PATCH 1/2] Allow a kthread to declare that it calls task_work_run()

From: Christoph Hellwig
Date: Wed Dec 06 2023 - 00:46:44 EST


On Tue, Dec 05, 2023 at 12:14:29PM +0100, Christian Brauner wrote:
> > For me, the more core of an export it is, the stronger the reason it
> > should be GPL. FWIW, I don't think exporting task_work functionality is
> > a good idea in the first place, but if there's a strong reason to do so,
>
> Yeah, I'm not too fond of that part as well. I don't think we want to
> give modules the ability to mess with task work. This is just asking for
> trouble.

It just seems like a really bad idea. At the same time it fixes a real
problem. If we go a step back how could we fix it in a better way?
Do we even need the task_run based delay for file usage from kernel
threads?