Re: [PATCH v2 03/10] x86/mm: Give each mm TLB flush generation a unique ID

From: Dave Hansen
Date: Wed Jun 14 2017 - 11:55:10 EST


On 06/13/2017 09:56 PM, Andy Lutomirski wrote:
> typedef struct {
> + /*
> + * ctx_id uniquely identifies this mm_struct. A ctx_id will never
> + * be reused, and zero is not a valid ctx_id.
> + */
> + u64 ctx_id;

Ahh, and you need this because an mm itself might get reused by being
freed and reallocated?