[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200630182933.GC26512@redhat.com>
Date: Tue, 30 Jun 2020 20:29:34 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Nicholas Piggin <npiggin@...il.com>,
Andi Kleen <ak@...ux.intel.com>,
Davidlohr Bueso <dave@...olabs.net>, Jan Kara <jack@...e.cz>,
Lukas Czerner <lczerner@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Mel Gorman <mgorman@...hsingularity.net>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: wait_on_page_bit_common(TASK_KILLABLE, EXCLUSIVE) can miss
wakeup?
On 06/30, Linus Torvalds wrote:
>
> On Tue, Jun 30, 2020 at 4:51 AM Oleg Nesterov <oleg@...hat.com> wrote:
> >
> > On 06/30, Oleg Nesterov wrote:
> > >
> > > may be someting like this
> >
> > or this ...
>
> Guys, I'd suggest we either
>
> (a) do the minimal ugly one-liner workaround
>
> or
>
> (b) do something *much* more radical.
I agree, and let me repeat I think your one-liner is fine.
I just tried to discuss the possible alternatives to that on-liner for the
start.
> the wake_page_function() would actually do
I swear, I too thought about changing wake_page_function() but got lost ;)
The very fact it returns -1 if test_bit() is true suggests it can do more.
Oleg.
Powered by blists - more mailing lists