From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f198.google.com (mail-wr0-f198.google.com [209.85.128.198]) by kanga.kvack.org (Postfix) with ESMTP id 7B7FF6B03AB for ; Wed, 21 Jun 2017 04:06:01 -0400 (EDT) Received: by mail-wr0-f198.google.com with SMTP id z81so3517093wrc.2 for ; Wed, 21 Jun 2017 01:06:01 -0700 (PDT) Received: from Galois.linutronix.de (Galois.linutronix.de. [2a01:7a0:2:106d:700::1]) by mx.google.com with ESMTPS id 62si5096563wrg.61.2017.06.21.01.06.00 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 01:06:00 -0700 (PDT) Date: Wed, 21 Jun 2017 10:05:55 +0200 (CEST) From: Thomas Gleixner Subject: Re: [PATCH v3 04/11] x86/mm: Give each mm TLB flush generation a unique ID In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Andy Lutomirski Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Linus Torvalds , Andrew Morton , Mel Gorman , "linux-mm@kvack.org" , Nadav Amit , Rik van Riel , Dave Hansen , Arjan van de Ven , Peter Zijlstra 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 Reviewed-by: Thomas Gleixner -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org