mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
7913690dcc
commit
2d58f63f72
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue