From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754249AbbESIQb (ORCPT ); Tue, 19 May 2015 04:16:31 -0400 Received: from www.linutronix.de ([62.245.132.108]:53124 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754151AbbESIQZ (ORCPT ); Tue, 19 May 2015 04:16:25 -0400 Date: Tue, 19 May 2015 10:16:35 +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: <20150519062530.E615C578@viggo.jf.intel.com> Message-ID: References: <20150519062528.E2D5DDFF@viggo.jf.intel.com> <20150519062530.E615C578@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,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 May 2015, Dave Hansen wrote: > From: Dave Hansen > > The MPX code can only work on the current task. You can 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. > > Signed-off-by: Dave Hansen Reviewed-by: Thomas Gleixner