lkml.org 
[lkml]   [2019]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86/fpu: Simplify kernel_fpu_begin
On Tue, Jun 04, 2019 at 01:47:01PM +0200, Peter Zijlstra wrote:
> > + if (current->mm && !test_thread_flag(TIF_NEED_FPU_LOAD)) {
>
> Did that want to be: !(current->flags & PF_KTHREAD), instead?
>
> Because I'm thinking that kernel_fpu_begin() on a kthread that has
> use_mm() employed shouldn't be doing this..

Well, this is intended to not change semantics. If we should fix
this is should be a separate patch before or after this series.

\
 
 \ /
  Last update: 2019-06-04 15:13    [W:0.053 / U:1.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site