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
[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 <email@example.com>
Signed-off-by: Eric Van Hensbergen <firstname.lastname@example.org>
Eric Van Hensbergen
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.