summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2012-02-22 16:43:55 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-04-30 10:48:21 -0700
commit944ce9af4767ca085d465e4add69df11a8faa9ef (patch)
tree2d2f695f15affe404efb1c0646e6d31ece677d62 /kernel/futex.c
parent440253c17fc4ed41d778492a7fb44dc0d756eccc (diff)
rcu: Flip ->completed only once per SRCU grace period
This is an optimization of the SRCU grace period. To guard against preempted readers with old values of the counter, it suffices to scan the old counters once more, then flip ->completed only one time. The reason this works is that the old readers must have incremented the old set of counters (if they have not yet incremented, then their critical section starts after this grace period, so they may be safely ignored). This commit therefore optimizes the second flip out in favor of a simple rescan. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions