Re: [PATCH] Fix a race in pid generation that causes pids to be reused immediately.

Benjamin Herrenschmidt
2010-06-15T06:59:48Z

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.