From: Matthew Wilcox Date: Wed, 11 Jul 2018 21:02:20 +0000 (-0700) Subject: 9p: Fix comment on smp_wmb X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2d58f63f72f28ba297a9ae344a5b5f0cf75bcd94;p=linux.git 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.org Signed-off-by: Matthew Wilcox Reviewed-by: Greg Kurz Cc: Eric Van Hensbergen Cc: Ron Minnich Cc: Latchesar Ionkov Signed-off-by: Dominique Martinet --- diff --git a/net/9p/client.c b/net/9p/client.c index dd461c718cf99..cae1fb43bd163 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -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;