Re: [RFC][PATCH] sched: Use lightweight hazard pointers to grab lazy mms

From: Peter Zijlstra
Date: Thu Jun 17 2021 - 11:45:44 EST


On Thu, Jun 17, 2021 at 07:10:41AM -0700, Andy Lutomirski wrote:
> On Thu, Jun 17, 2021, at 2:08 AM, Peter Zijlstra wrote:
> > +extern void mm_unlazy_mm_count(struct mm_struct *mm);
>
> You didn't like mm_many_words_in_the_name_of_the_function()? :)

:-)

> > - if (mm) {
> > - membarrier_mm_sync_core_before_usermode(mm);
> > - mmdrop(mm);
> > - }
>
> What happened here?
>

I forced your patch ontop of tip/master without bothering about the
membarrier cleanups and figured I could live without that call for a
little while.

But yes, that needs cleaning up.