Commit [2b6e72]  Maximize  Restore  History

9P: Add memory barriers to protect request fields over cb/rpc threads handoff

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>

Dominique Martinet Dominique Martinet 2014-01-17

Eric Van Hensbergen Eric Van Hensbergen 2014-03-25

changed include/net/9p/client.h
changed net/9p/client.c
changed net/9p/trans_fd.c
changed net/9p/trans_rdma.c
changed net/9p/trans_virtio.c
include/net/9p/client.h Diff Switch to side-by-side view
Loading...
net/9p/client.c Diff Switch to side-by-side view
Loading...
net/9p/trans_fd.c Diff Switch to side-by-side view
Loading...
net/9p/trans_rdma.c Diff Switch to side-by-side view
Loading...
net/9p/trans_virtio.c Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks