From: Dominique Martinet Date: Fri, 17 Jan 2014 17:31:00 +0000 (+0100) Subject: 9P: Add memory barriers to protect request fields over cb/rpc threads handoff X-Git-Tag: v3.15-rc1~24^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b6e72ed747f68a038df616efd86744b3644d694;p=pandora-kernel.git 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 Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed