Skip to content

Commit 2d58f63

Browse files
Matthew WilcoxDominique Martinet
authored andcommitted
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 <willy@infradead.org> Reviewed-by: Greg 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: Dominique Martinet <dominique.martinet@cea.fr>
1 parent 7913690 commit 2d58f63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/9p/client.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ void p9_client_cb(struct p9_client *c, struct p9_req_t *req, int status)
448448

449449
/*
450450
* This barrier is needed to make sure any change made to req before
451-
* the other thread wakes up will indeed be seen by the waiting side.
451+
* the status change is visible to another thread
452452
*/
453453
smp_wmb();
454454
req->status = status;

0 commit comments

Comments
 (0)