Re: [PATCH] Mutilated form of Andi Kleen's AMD prefetch errata patch

From: Andrew Morton
Date: Wed Oct 01 2003 - 02:00:07 EST


Andi Kleen <ak@xxxxxxx> wrote:
>
> Andrew Morton <akpm@xxxxxxxx> writes:
>
> > Looking at Andi's patch, it is also a dead box if the fault happens inside
> > down_write(mmap_sem). That should be fixed, methinks.
>
> The only way to fix all that would be to move the instruction checks early
> into the fast path.

Well the deadlock avoidance only needs to happen if the fault occured in
kernel mode. Presumably most faults are in userspace, so most of the
overhead can be avoided.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/