Re: sequence lock in Linux

From: H. Peter Anvin
Date: Fri Jun 11 2010 - 17:39:40 EST

On 06/11/2010 02:36 PM, Paul E. McKenney wrote:
> Memory barriers in the sequence-lock code prevent this, assuming, as
> you point out, that memory clobber works (but if it doesn't, it should
> be fixed):

The constness is my main concern. It's not clear to me that "memory" is
meant to imply that const memory areas without volatile can be clobbered.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at