2021-01-31 01:08:19

by Andy Lutomirski

[permalink] [raw]
Subject: Re: [RFC 01/20] mm/tlb: fix fullmm semantics

On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit <[email protected]> wrote:
>
> From: Nadav Amit <[email protected]>
>
> fullmm in mmu_gather is supposed to indicate that the mm is torn-down
> (e.g., on process exit) and can therefore allow certain optimizations.
> However, tlb_finish_mmu() sets fullmm, when in fact it want to say that
> the TLB should be fully flushed.

Maybe also rename fullmm?


2021-01-31 01:23:10

by Nadav Amit

[permalink] [raw]
Subject: Re: [RFC 01/20] mm/tlb: fix fullmm semantics

> On Jan 30, 2021, at 5:02 PM, Andy Lutomirski <[email protected]> wrote:
>
> On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit <[email protected]> wrote:
>> From: Nadav Amit <[email protected]>
>>
>> fullmm in mmu_gather is supposed to indicate that the mm is torn-down
>> (e.g., on process exit) and can therefore allow certain optimizations.
>> However, tlb_finish_mmu() sets fullmm, when in fact it want to say that
>> the TLB should be fully flushed.
>
> Maybe also rename fullmm?

Possible. How about mm_torn_down?

I should have also changed the comment in tlb_finish_mmu().

2021-01-31 03:02:54

by Andy Lutomirski

[permalink] [raw]
Subject: Re: [RFC 01/20] mm/tlb: fix fullmm semantics

On Sat, Jan 30, 2021 at 5:19 PM Nadav Amit <[email protected]> wrote:
>
> > On Jan 30, 2021, at 5:02 PM, Andy Lutomirski <[email protected]> wrote:
> >
> > On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit <[email protected]> wrote:
> >> From: Nadav Amit <[email protected]>
> >>
> >> fullmm in mmu_gather is supposed to indicate that the mm is torn-down
> >> (e.g., on process exit) and can therefore allow certain optimizations.
> >> However, tlb_finish_mmu() sets fullmm, when in fact it want to say that
> >> the TLB should be fully flushed.
> >
> > Maybe also rename fullmm?
>
> Possible. How about mm_torn_down?

Sure. Or mm_exiting, perhaps?

>
> I should have also changed the comment in tlb_finish_mmu().