[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHk-=wierLhQ7EWZKmzNRhBPh6cxCeBDoe-Av8Z0F=8NDXj_gA@mail.gmail.com>
Date: Tue, 4 Mar 2025 09:49:29 -1000
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Mateusz Guzik <mjguzik@...il.com>, brauner@...nel.org, mingo@...hat.com,
peterz@...radead.org, rostedt@...dmis.org, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: Re: pipes && EPOLLET, again
On Tue, 4 Mar 2025 at 09:32, Oleg Nesterov <oleg@...hat.com> wrote:
>
> I agree that my test case is "buggy", but afaics it is not buggier than
> userspace programs which rely on the unconditional kill_fasync()'s in
> pipe_read/pipe_write?
I'm not convinced any such users actually exist.
The reason kill_fasync() is unconditional is that it's cheap. The
normal situation is "nobody there", and we test that without any
locking.
So we've never bothered to make any changes to that path, and there's
never been any real reason to have any "was_empty" like conditionals.
Linus
Powered by blists - more mailing lists