• Nick Piggin's avatar
    kernel: optimise seqlock · 3c22cd57
    Nick Piggin authored
    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>
    3c22cd57
seqlock.h 6.71 KB