Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752550AbdFUIGA (ORCPT ); Wed, 21 Jun 2017 04:06:00 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:48018 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbdFUIF5 (ORCPT ); Wed, 21 Jun 2017 04:05:57 -0400 Date: Wed, 21 Jun 2017 10:05:55 +0200 (CEST) From: Thomas Gleixner 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 Subject: Re: [PATCH v3 04/11] x86/mm: Give each mm TLB flush generation a unique ID In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 20 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