提交 2d58f63f 编写于 作者: M Matthew Wilcox 提交者: Dominique Martinet

9p: Fix comment on smp_wmb

The previous comment misled me into thinking the barrier wasn't needed
at all.

Link: http://lkml.kernel.org/r/20180711210225.19730-2-willy@infradead.orgSigned-off-by: NMatthew Wilcox <willy@infradead.org>
Reviewed-by: NGreg Kurz <groug@kaod.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: NDominique Martinet <dominique.martinet@cea.fr>
上级 7913690d
...@@ -448,7 +448,7 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t *req, int status) ...@@ -448,7 +448,7 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t *req, int status)
/* /*
* This barrier is needed to make sure any change made to req before * This barrier is needed to make sure any change made to req before
* the other thread wakes up will indeed be seen by the waiting side. * the status change is visible to another thread
*/ */
smp_wmb(); smp_wmb();
req->status = status; req->status = status;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册