Re: [patch] proposed fix for ptrace() SMP race

Alan Cox (alan@lxorguk.ukuu.org.uk)
Fri, 7 Sep 2001 02:41:11 +0100 (BST)


> +#ifdef CONFIG_SMP
> + rmb(); /* read child->has_cpu after child->state */
> + while (child->has_cpu);
rep_nop();

otherwise your PIV will overheat
-
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/