Re: [patch] Re: using long instead of atomic_t when only set/readis required

From: Alan Cox
Date: Mon Mar 03 2008 - 11:12:17 EST



> Atomicity of reads of write for pointers and integral types (other than
> long long) should be documented.

NAK.

Atomicity of reads or writes for pointers and integral types is NOT
guaranteed. Gcc doesn't believe in your guarantee.

Alan
--
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/