From: Paul E. McKenney Date: Wed, 17 Oct 2007 06:26:04 +0000 (-0700) Subject: Immunize rcu_dereference() against crazy compiler writers X-Git-Tag: v2.6.24-rc1~778 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97b430320ce7c95f0d5587c5ecc8f6a9d0c698e9;p=pandora-kernel.git Immunize rcu_dereference() against crazy compiler writers Turns out that compiler writers are a bit more aggressive about optimizing than one might expect. This patch prevents a number of such optimizations from messing up rcu_deference(). This is not merely a theoretical problem, as evidenced by the rmb() in mce_log(). Signed-off-by: Paul E. McKenney Cc: Ingo Molnar Acked-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed