Re: [PATCH] preempt-safe load_LDT

Linus Torvalds (torvalds@transmeta.com)
Sat, 20 Jul 2002 13:42:27 -0700 (PDT)


On 20 Jul 2002, Robert Love wrote:
>
> Attached patch makes load_LDT preempt-safe per our off-list discussion.

It's buggy. It calls smp_processor_id() outside the preemption window, see
"load_LDT()".

I'd suggest making it use get/put_cpu() and to avoid the header file
dependencies moving it away from desc.h and into ldt.c instead.

Linus

-
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/