git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
9P: Add memory barriers to protect request fields over cb/rpc threads handoff
author
Dominique Martinet
<dominique.martinet@cea.fr>
Fri, 17 Jan 2014 17:31:00 +0000
(18:31 +0100)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Tue, 25 Mar 2014 21:37:59 +0000
(16:37 -0500)
We need barriers to guarantee this pattern works as intended:
[w] req->rc, 1 [r] req->status, 1
wmb rmb
[w] req->status, 1 [r] req->rc
Where the wmb ensures that rc gets written before status,
and the rmb ensures that if you observe status == 1, rc is the new value.
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
No differences found