From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760506AbcBYJ5M (ORCPT ); Thu, 25 Feb 2016 04:57:12 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:52945 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759853AbcBYJ5K (ORCPT ); Thu, 25 Feb 2016 04:57:10 -0500 Date: Thu, 25 Feb 2016 10:56:35 +0100 From: Peter Zijlstra To: Mathieu Desnoyers Cc: Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Hunter , Andy Lutomirski , Andi Kleen , Dave Watson , Chris Lameter , Ben Maurer , Steven Rostedt , "Paul E. McKenney" , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk Subject: Re: [PATCH v4 1/5] getcpu_cache system call: cache CPU number of running thread Message-ID: <20160225095635.GO6356@twins.programming.kicks-ass.net> References: <1456270120-7560-1-git-send-email-mathieu.desnoyers@efficios.com> <1456270120-7560-2-git-send-email-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456270120-7560-2-git-send-email-mathieu.desnoyers@efficios.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 23, 2016 at 06:28:36PM -0500, Mathieu Desnoyers wrote: > This approach is inspired by Paul Turner and Andrew Hunter's work > on percpu atomics, which lets the kernel handle restart of critical > sections. [1] [2] So I'd like a few extra words on the intersection with that work. Yes, that also needs a CPU number, but that needs a little extra as well. Can this work be extended to provide the little extra and is the getcpu name still sane in that case? Alternatively, could you not, at equal speed, get the CPU number from the restartable sequence data? That is, do explain why we want both. (And remind Paul to keep pushing that)