ia64/xen-unstable

changeset 16244:a9171b9c3fd8

xentrace: Fix race in updating consumer ring index.
From: George Dunlap <gdunlap@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Thu Oct 25 17:27:57 2007 +0100 (2007-10-25)
parents c3b41281b1fc
children b5a2cbca3930
files tools/xentrace/xentrace.c
line diff
     1.1 --- a/tools/xentrace/xentrace.c	Thu Oct 25 16:52:05 2007 +0100
     1.2 +++ b/tools/xentrace/xentrace.c	Thu Oct 25 17:27:57 2007 +0100
     1.3 @@ -394,7 +394,7 @@ int monitor_tbufs(int outfd)
     1.4              }
     1.5  
     1.6              mb(); /* read buffer, then update cons. */
     1.7 -            meta[i]->cons = meta[i]->prod;
     1.8 +            meta[i]->cons = prod;
     1.9          }
    1.10  
    1.11          nanosleep(&opts.poll_sleep, NULL);