x86/fpu: Don't set TIF_NEED_FPU_LOAD for PF_IO_WORKER threads
authorJens Axboe <axboe@kernel.dk>
Tue, 24 Jan 2023 15:23:20 +0000 (08:23 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 25 Jan 2023 11:35:15 +0000 (12:35 +0100)
commitcb3ea4b7671b7cfbac3ee609976b790aebd0bbda
treea6ddca3d0c27fb7b7b80ed7720ba490a06b5c65a
parentaa81cb9d9723694bb18359adbef7964030758dba
x86/fpu: Don't set TIF_NEED_FPU_LOAD for PF_IO_WORKER threads

We don't set it on PF_KTHREAD threads as they never return to userspace,
and PF_IO_WORKER threads are identical in that regard. As they keep
running in the kernel until they die, skip setting the FPU flag on them.

More of a cosmetic thing that was found while debugging and
issue and pondering why the FPU flag is set on these threads.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/560c844c-f128-555b-40c6-31baff27537f@kernel.dk
arch/x86/include/asm/fpu/sched.h
arch/x86/kernel/fpu/context.h
arch/x86/kernel/fpu/core.c