Re: [PATCH 2/3] x86/fpu: Remove the thread::fpu pointer
From: Oleg Nesterov
Date: Wed Jun 05 2024 - 09:52:26 EST
On 06/05, Ingo Molnar wrote:
>
> @@ -591,13 +591,11 @@ int fpu_clone(struct task_struct *dst, unsigned long clone_flags, bool minimal,
> * This is safe because task_struct size is a multiple of cacheline size.
> */
> struct fpu *dst_fpu = (void *)dst + sizeof(*dst);
> - struct fpu *src_fpu = current->thread.fpu;
> + struct fpu *src_fpu = x86_task_fpu(current);
I think this patch can also change
struct fpu *dst_fpu = (void *)dst + sizeof(*dst);
above to use x86_task_fpu(dst).
Oleg.