Skip to content
Commit 3c22cd57 authored by Nicholas Piggin's avatar Nicholas 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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment