From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754274AbdK1UkA (ORCPT ); Tue, 28 Nov 2017 15:40:00 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:35554 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbdK1Uj6 (ORCPT ); Tue, 28 Nov 2017 15:39:58 -0500 Date: Tue, 28 Nov 2017 21:39:49 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: Dave Hansen , Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , "H . Peter Anvin" , Borislav Petkov , Linus Torvalds Subject: Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches Message-ID: <20171128203949.iceajmil2cwvktho@hirez.programming.kicks-ass.net> References: <20171127104923.14378-1-mingo@kernel.org> <20171127104923.14378-16-mingo@kernel.org> <20171128163908.e3gj6zgq6kcbdlxe@hirez.programming.kicks-ass.net> <1c9a32ed-e754-9d91-98f7-b72c07b2c0dc@linux.intel.com> <20171128190505.pqip2v2ewb3isjhd@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 28, 2017 at 12:34:17PM -0800, Andy Lutomirski wrote: > Side question: on extremely quick read, you're doing bt then btr. Why > not just do a single btr and be done with it? Are you trying to avoid > getting exclusive access to the cacheline when not needed? Yes, avoids the M in the common !flush case.