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

From: tytso
Date: Tue Jun 15 2010 - 08:56:58 EST


On Mon, Jun 14, 2010 at 06:55:56PM -0700, Andrew Morton wrote:
>
> I think you're probably right, as long as one sticks with 4-byte
> scalars. The cmpxchg-is-now-generic change snuck in under the radar
> (mine, at least).

Hmmm, what about unsigned longs? (Which might be 8 bytes on some
architectures....)

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/