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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Feb 2009 17:53:27 +0000 (09:53 -0800)
commit45e01b3266e1597ce3ef9c5c233b5110cd5eab78
tree4152acafd31df7c40061f9485df2d8e16bcd1b01
parenta861eef17134a84dae14d8613e1b3ca14176f6a7
sgi-xpc: ensure flags are updated before bte_copy

commit 69b3bb65fa97a1e8563518dbbc35cd57beefb2d4 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/sgi-xp/xpc_sn2.c
drivers/misc/sgi-xp/xpc_uv.c