Re: [PATCH 04/19] x86, mpx: Cleanup: Do not pass task around when unnecessary

From: Thomas Gleixner
Date: Tue May 19 2015 - 04:16:35 EST


On Mon, 18 May 2015, Dave Hansen wrote:
> From: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>
> 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 <dave.hansen@xxxxxxxxxxxxxxx>

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/