Messages in this thread |  | | Date | Fri, 7 Sep 2001 15:34:25 +0200 | From | Andrea Arcangeli <> | Subject | Re: [patch] proposed fix for ptrace() SMP race |
| |
On Fri, Sep 07, 2001 at 02:41:11AM +0100, Alan Cox wrote: > > +#ifdef CONFIG_SMP > > + rmb(); /* read child->has_cpu after child->state */ > > + while (child->has_cpu); > rep_nop(); > > otherwise your PIV will overheat
indeed correct (OTOH it's a so small window [not like a contended spinlock] that I wonder if it will make a difference in real life ;)
Andrea - 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/
|  |