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:
Keir Fraser committed 2007-10-25 17:27:57 +01:00
1 parent 223f057f70
commit 5afede5ce6
1 file changed
+1 -1
+1 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.