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/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Ron Minnich <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Signed-off-by: Dominique Martinet <[email protected]>
This commit is contained in:
Matthew Wilcox 2018-07-11 14:02:20 -07:00 • committed by Dominique Martinet
commit 2d58f63f72

View file

@ -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
* the other thread wakes up will indeed be seen by the waiting side.
* the status change is visible to another thread
*/
smp_wmb();
req->status = status;