]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Make synchronize_sched_expedited() better at work sharing
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 22 Sep 2011 20:18:44 +0000 (13:18 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 11 Dec 2011 18:31:22 +0000 (10:31 -0800)
commit1377560e65ae23b510dd0dedcdd8547cff7c46a8
treec8713205a1e6ce6973822bb76ea5e7e1774444ee
parentef2efe7a36c64d34cef93aeec554f0079a15852b
rcu: Make synchronize_sched_expedited() better at work sharing

When synchronize_sched_expedited() takes its second and subsequent
snapshots of sync_sched_expedited_started, it subtracts 1.  This
means that the concurrent caller of synchronize_sched_expedited()
that incremented to that value sees our successful completion, it
will not be able to take advantage of it.  This restriction is
pointless, given that our full expedited grace period would have
happened after the other guy started, and thus should be able to
serve as a proxy for the other guy successfully executing
try_stop_cpus().

This commit therefore removes the subtraction of 1.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutree_plugin.h