sgi-xpc: ensure flags are updated before bte_copy
authorRobin Holt <holt@sgi.com>
Thu, 29 Jan 2009 22:25:06 +0000 (14:25 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Jan 2009 02:04:42 +0000 (18:04 -0800)
commit69b3bb65fa97a1e8563518dbbc35cd57beefb2d4
treeb8ca162f1a6ed85b85d8e406a3e9588ed0786144
parentde33c8db5910cda599899dd431cc30d7c1018cbf
sgi-xpc: ensure flags are updated before bte_copy

The clearing of the msg->flags needs a barrier between it and the notify
of the channel threads that the messages are cleaned and ready for use.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Dean Nelson <dcn@sgi.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/sgi-xp/xpc_sn2.c
drivers/misc/sgi-xp/xpc_uv.c