From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932965AbbERUiB (ORCPT ); Mon, 18 May 2015 16:38:01 -0400 Received: from www.linutronix.de ([62.245.132.108]:51077 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932114AbbERUh5 (ORCPT ); Mon, 18 May 2015 16:37:57 -0400 Date: Mon, 18 May 2015 22:38:03 +0200 (CEST) From: Thomas Gleixner To: Dave Hansen cc: linux-kernel@vger.kernel.org, x86@kernel.org, dave.hansen@linux.intel.com, oleg@redhat.com, bp@alien8.de Subject: Re: [PATCH 04/19] x86, mpx: cleanup: do not pass task around when unnecessary In-Reply-To: <20150508185950.13D22E28@viggo.jf.intel.com> Message-ID: References: <20150508185948.4C19F4B0@viggo.jf.intel.com> <20150508185950.13D22E28@viggo.jf.intel.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 May 2015, Dave Hansen wrote: > The MPX code can largely only work on the current task. You can s/largely// ? > not, for instance, enable MPX management in another process or > thread. You can also not handle a fault for another process > or thread. > > Despite this, we pass a task_struct around prolifically. This > patch removes all of the task struct passing for code paths > where the code can not deal with another task (which turns out > to be all of them). > > This has no functional changes. It's just a cleanup. See also reply to previous patch. Thanks, tglx