From: Paul E. McKenney Date: Thu, 20 Sep 2012 23:02:49 +0000 (-0700) Subject: rcu: Accelerate callbacks for CPU initiating a grace period X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~79^2^2~4^3~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62da1921292ef789c23a7bf01d671d7572baf377;p=pandora-kernel.git rcu: Accelerate callbacks for CPU initiating a grace period Because grace-period initialization is carried out by a separate kthread, it might happen on a different CPU than the one that had the callback needing a grace period -- which is where the callback acceleration needs to happen. Fortunately, rcu_start_gp() holds the root rcu_node structure's ->lock, which prevents a new grace period from starting. This allows this function to safely determine that a grace period has not yet started, which in turn allows it to fully accelerate any callbacks that it has pending. This commit adds this acceleration. Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed