From: Mathieu Desnoyers Date: Mon, 12 Nov 2012 02:44:59 +0000 (-0500) Subject: urcu-bp: improve 2-phase wait scheme X-Git-Tag: v0.8.0~144 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=dd61d0772f8dda35aadf9636ebabfaebf24add6a;hp=dd61d0772f8dda35aadf9636ebabfaebf24add6a;p=urcu.git urcu-bp: improve 2-phase wait scheme In the single-bit, 2-phase grace period scheme, all we need to do is to observe each reader going through a quiescent state while we are in the grace period. We therefore only need to perform one global counter update, surrounded by 2 iterations on readers to observe change in their snapshot. We can therefore remove the first counter update (prior to the first iteration on readers): it was useless and was only slowing down the grace period. CC: Paul E. McKenney CC: Lai Jiangshan CC: Alan Stern Signed-off-by: Mathieu Desnoyers ---