Re: [PATCH v3 04/11] x86/mm: Give each mm TLB flush generation a unique ID

From: Thomas Gleixner
Date: Wed Jun 21 2017 - 04:06:06 EST

On Tue, 20 Jun 2017, Andy Lutomirski wrote:

> This adds two new variables to mmu_context_t: ctx_id and tlb_gen.
> ctx_id uniquely identifies the mm_struct and will never be reused.
> For a given mm_struct (and hence ctx_id), tlb_gen is a monotonic
> count of the number of times that a TLB flush has been requested.
> The pair (ctx_id, tlb_gen) can be used as an identifier for TLB
> flush actions and will be used in subsequent patches to reliably
> determine whether all needed TLB flushes have occurred on a given
> CPU.
> This patch is split out for ease of review. By itself, it has no
> real effect other than creating and updating the new variables.

Thanks for splitting this apart!

> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>