Re: [PATCH v2] x86/mm/tlb: ignore f->new_tlb_gen when zero

From: Nadav Amit
Date: Tue Jul 12 2022 - 20:36:09 EST


On Jul 11, 2022, at 10:39 AM, Nadav Amit <namit@xxxxxxxxxx> wrote:

> On Jul 10, 2022, at 4:28 PM, Nadav Amit <nadav.amit@xxxxxxxxx> wrote:
>
>> From: Nadav Amit <namit@xxxxxxxxxx>
>>
>> Commit aa44284960d5 ("x86/mm/tlb: Avoid reading mm_tlb_gen when
>> possible") introduced an optimization of skipping the flush if the TLB
>> generation that is flushed (as provided in flush_tlb_info) was already
>> flushed.
>
> Dave,
>
> Can you please review this patch today?
>
> I feel bad (for a good reason) for breaking swap/migration.
>
> Thanks,
> Nadav

Ping?

As you know, this really must go into 5.19 or otherwise aa44284960d5
reverted.