Re: [PATCH/RFC] core/nfsd: allow kernel threads to use task_work.

From: Oleg Nesterov
Date: Tue Nov 28 2023 - 09:03:23 EST


On 11/28, NeilBrown wrote:
>
> I have evidence from a customer site of 256 nfsd threads adding files to
> delayed_fput_lists nearly twice as fast they are retired by a single
> work-queue thread running delayed_fput(). As you might imagine this
> does not end well (20 million files in the queue at the time a snapshot
> was taken for analysis).

On a related note... Neil, Al, et al, can you look at

[PATCH 1/3] fput: don't abuse task_work_add() when possible
https://lore.kernel.org/all/20150908171446.GA14589@xxxxxxxxxx/

(please ignore 3/3).

Oleg.