ia64/linux-2.6.18-xen.hg

changeset 538:77db69c38249

evtchn: Use wmb instead of rmb to enforce ordering between
evtchn_upcall_pending and evtchn_pending_sel stores.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 08 11:55:42 2008 +0100 (2008-05-08)
parents 63b51bcb6bf6
children 0da2e3c3ae18
files drivers/xen/core/evtchn.c
line diff
     1.1 --- a/drivers/xen/core/evtchn.c	Thu May 08 11:14:47 2008 +0100
     1.2 +++ b/drivers/xen/core/evtchn.c	Thu May 08 11:55:42 2008 +0100
     1.3 @@ -246,7 +246,7 @@ asmlinkage void evtchn_do_upcall(struct 
     1.4  
     1.5  #ifndef CONFIG_X86 /* No need for a barrier -- XCHG is a barrier on x86. */
     1.6  		/* Clear master flag /before/ clearing selector flag. */
     1.7 -		rmb();
     1.8 +		wmb();
     1.9  #endif
    1.10  		l1 = xchg(&vcpu_info->evtchn_pending_sel, 0);
    1.11