Skip to content
Commit 3c22cd57 authored by Nick Piggin's avatar Nick Piggin
Browse files

kernel: optimise seqlock



Add branch annotations for seqlock read fastpath, and introduce
__read_seqcount_begin and __read_seqcount_end functions, that can avoid the
smp_rmb() if used carefully. These will be used by store-free path walking
algorithm performance is critical and seqlocks are in use.

Signed-off-by: default avatarNick Piggin <npiggin@kernel.dk>
parent ff0c7d15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment