mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xentrace: Fix race in updating consumer ring index.
From: George Dunlap <gdunlap@xensource.com> Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
223f057f70
commit
5afede5ce6
1 file changed
+1
-1
@@ -394,7 +394,7 @@ int monitor_tbufs(int outfd)
|
||||
}
|
||||
|
||||
mb(); /* read buffer, then update cons. */
|
||||
meta[i]->cons = meta[i]->prod;
|
||||
meta[i]->cons = prod;
|
||||
}
|
||||
|
||||
nanosleep(&opts.poll_sleep, NULL);
|
||||
|
||||