summaryrefslogtreecommitdiffstats
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-18 19:28:31 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-21 14:59:27 +0200
commit0497b489b8255054f113fd31faeb72f6dbc50a68 (patch)
tree93c01ac25a12ce28f787fe7849887cdf53223a15 /kernel/profile.c
parentsrcu: Parallelize callback handling (diff)
downloadlinux-0497b489b8255054f113fd31faeb72f6dbc50a68.tar.xz
linux-0497b489b8255054f113fd31faeb72f6dbc50a68.zip
srcu: Expedite srcu_schedule_cbs_snp() callback invocation
Although Tree SRCU does reduce delays when there is at least one synchronize_srcu_expedited() invocation pending, srcu_schedule_cbs_snp() still waits for SRCU_INTERVAL before invoking callbacks. Since synchronize_srcu_expedited() now posts a callback and waits for that callback to do a wakeup, this destroys the expedited nature of synchronize_srcu_expedited(). This destruction became apparent to Marc Zyngier in the guise of a guest-OS bootup slowdown from five seconds to no fewer than forty seconds. This commit therefore invokes callbacks immediately at the end of the grace period when there is at least one synchronize_srcu_expedited() invocation pending. This brought Marc's guest-OS bootup times back into the realm of reason. Reported-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'kernel/profile.c')
0 files changed, 0 insertions, 0 deletions