]> git.baikalelectronics.ru Git - kernel.git/commit
kernel: optimise seqlock
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:51 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:27 +0000 (17:50 +1100)
commit8913644f73e072b5e3d18e3db360a0364179db02
tree6d245491d9103a1d77a3128ed5d1d996d3794300
parent99fc8d1043e531f1e1fa88606bb9d242b394506c
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: Nick Piggin <npiggin@kernel.dk>
include/linux/seqlock.h