[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z73Tj3SAzNjaHwV3@localhost.localdomain>
Date: Tue, 25 Feb 2025 15:28:31 +0100
From: Frederic Weisbecker <frederic@...nel.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
linux-kernel@...r.kernel.org, Eric Dumazet <edumazet@...gle.com>,
Peter Zijlstra <peterz@...radead.org>,
Waiman Long <longman@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH] task_work: Consume only item at a time while invoking
the callbacks.
Le Sun, Feb 23, 2025 at 11:40:15PM +0100, Oleg Nesterov a écrit :
> Well... I won't really argue because I can't suggest a better fix at
> least right now. Most probably never.
>
> However, let me say that this patch doesn't make me happy ;) See below.
>
> On 02/21, Sebastian Andrzej Siewior wrote:
> >
> > Oleg pointed out that this might be problematic if one closes 2.000.000
> > files at once. While testing this scenario by opening that many files
> > following by exit() to ensure that all files are closed at once, I did
> > not observe anything outside of noise.
>
> and this probably means that we can revert c82199061009 ("task_work: remove
> fifo ordering guarantee") and restore the fifo ordering which IMO makes much
> more sense.
>
> But:
>
> > Fixes: c5d93d23a2601 ("perf: Enqueue SIGTRAP always via task_work.")
>
> Yes. So, to fix this specific problem in perf this patch changes task_work.c
>
> And after this change we can never enforce a "clear" ordering, fifo or even lifo.
> The ordering is simply "unpredictable/random".
>
> I'll try to find and read the previous discussions tomorrow, but iirc Frederic
> had another solution?
This:
https://lore.kernel.org/all/Zx-B0wK3xqRQsCOS@localhost.localdomain/
Though I'm not entirely happy with it either.
Thanks.
Powered by blists - more mailing lists