Re: [PATCH 1/6] sched/wait: Add swq_has_sleepers()

From: Peter Zijlstra
Date: Wed Oct 11 2017 - 07:30:00 EST


On Wed, Oct 11, 2017 at 01:21:47PM +0200, Paolo Bonzini wrote:
> On 11/10/2017 10:27, Peter Zijlstra wrote:
> > On Tue, Sep 05, 2017 at 12:00:17PM -0700, Davidlohr Bueso wrote:
> >> Which is the equivalent of what we have in regular waitqueues.
> >> I'm not crazy about the name, but this also helps us get both
> >> apis closer -- which iirc comes originally from the -net folks.
> >
> > I'm confused. I don't see anything like this in the original waitqueue.
> >
>
> /**
> * wq_has_sleeper - check if there are any waiting processes

Bah, clearly my grep-fu isn't strong today :/