Messages in this thread | | | Subject | Re: [PATCH] Fix a race in pid generation that causes pids to be reused immediately. | From | Benjamin Herrenschmidt <> | Date | Tue, 15 Jun 2010 16:57:47 +1000 |
| |
On Mon, 2010-06-14 at 21:21 -0700, Andrew Morton wrote: > If that happens then the best fix is for those architectures to get > themselves a cmpxchg64(). Unless for some reason it's simply > unimplementable? Worst case I guess one could use a global spinlock. > Second-worst-case: hashed spinlocks.
Right, ppc32 at least can't so that would be spinlocks...
Cheers, Ben.
| |