Optimize the seqlock implementation
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Jun 2020 21:24:36 +0000 (14:24 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 22 Jun 2020 02:47:25 +0000 (19:47 -0700)
commit5fa0c063c6fe405200ec97e8f3703446dd8d82bc
tree67acd112885fcf11af52db8360d58e8ae15d5f9b
parent0a602473807bcdaf28a30441ca05b9e16b6ad128
Optimize the seqlock implementation

Use atomic_load_acquire() and atomic_store_release() instead of barriers
where appropriate.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
lib/seqlock.h