]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit481fcf6cca871d80aaeb2df6d87ba0bc0938d7ff
tree17ddf26b6b21846c83a04821e0119f8490873faa
parent08f217dae37c3f63088d75634b8d4402772dd515
x86/fpu: Don't set TIF_NEED_FPU_LOAD for PF_IO_WORKER threads

[ Upstream commit a71fc66a81e04c191f7e1e5c95c9441e0a5a8d70 ]

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