From: Linus Torvalds Date: Sat, 4 Nov 2006 17:55:00 +0000 (-0800) Subject: Revert unintentional "volatile" changes in ipc/msg.c X-Git-Tag: upstream/snapshot3+hdmi~36210^2~20^2~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80491eb90c750fcd7d13830062f27ae9b7cc5f75;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Revert unintentional "volatile" changes in ipc/msg.c Commit 5a06a363ef48444186f18095ae1b932dddbbfa89 ("[PATCH] ipc/msg.c: clean up coding style") breaks fakeroot on Alpha (variously hangs or oopses), according to a report by Falk Hueffner. The fact that the code seems to rely on compiler access ordering through the use of "volatile" is a pretty certain sign that the code has locking problems, and we should fix those properly and then remove the whole "volatile" entirely. But in the meantime, the movement of "volatile" was unintentional, and should be reverted. Cc: Falk Hueffner Cc: Andrew Morton Acked-by: Ingo Molnar Signed-off-by: Linus Torvalds --- diff --git a/ipc/msg.c b/ipc/msg.c index 600e06f..1266b1d 100644 --- a/ipc/msg.c +++ b/ipc/msg.c @@ -52,7 +52,7 @@ struct msg_receiver { long r_msgtype; long r_maxsize; - volatile struct msg_msg *r_msg; + struct msg_msg *volatile r_msg; }; /* one msg_sender for each sleeping sender */