diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-06-17 18:08:56 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2018-06-22 14:52:53 +0200 |
commit | b509c99519d548e4a3208704329f6eb79ca82010 (patch) | |
tree | d2f89f2f67f346e9c96acdff203cbbaf72f4c14f | |
parent | selftest/mpmc_ring: Add more __init/__initdata annotations (diff) | |
download | wireguard-monolithic-historical-b509c99519d548e4a3208704329f6eb79ca82010.tar.xz wireguard-monolithic-historical-b509c99519d548e4a3208704329f6eb79ca82010.zip |
mpmc_ptr_ring: Fix a word
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
-rw-r--r-- | src/mpmc_ptr_ring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpmc_ptr_ring.h b/src/mpmc_ptr_ring.h index 258a16f..a09e165 100644 --- a/src/mpmc_ptr_ring.h +++ b/src/mpmc_ptr_ring.h @@ -105,7 +105,7 @@ static inline int mpmc_ptr_ring_produce(struct mpmc_ptr_ring *r, void *ptr) WRITE_ONCE(r->queue[p & mask], ptr); - /* Wait until it's our term to update the producer tail pointer */ + /* Wait until it's our turn to update the producer tail pointer */ while (atomic_read(&r->producer_tail) != p) cpu_relax(); |