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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:47 +0000 (09:33 +0100)
commit909eb5116ee5bfa45e7a265084a9712bbcca08b6
tree17ddf26b6b21846c83a04821e0119f8490873faa
parenta3a54e6a021ce1bf079c7cfe392bf97d6f5b3777
x86/fpu: Don't set TIF_NEED_FPU_LOAD for PF_IO_WORKER threads

[ Upstream commit cb3ea4b7671b7cfbac3ee609976b790aebd0bbda ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/fpu/sched.h
arch/x86/kernel/fpu/context.h
arch/x86/kernel/fpu/core.c