Re: [PATCH] make raid5 checksums preempt-safe
Brian Gerst (bgerst@didntduck.org)
Mon, 26 Aug 2002 18:33:27 -0400
Robert Love wrote:
> Linus,
>
> The raid5 xor checksums use MMX/SSE state and are not preempt-safe.
>
> Attached patch disables preemption in FPU_SAVE and XMMS_SAVE and
> restores it in FPU_RESTORE and XMMS_RESTORE - preventing preemption
> while in fp mode.
>
> Please, apply.
>
> Robert Love
Use kernel_fpu_begin() and kernel_fpu_end() instead of reinventing the
wheel. The current code is broken wrt SSE as well.
--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/