diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2010-11-30 00:56:39 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2011-05-06 02:16:54 -0400 |
commit | 12f5f524cafef3ab689929b118f2dfb8bf2be321 (patch) | |
tree | 639473556b6edf9b79e0a18d5ba58f80eea76519 /kernel/rcutree.c | |
parent | e59fb3120becfb36b22ddb8bd27d065d3cdca499 (diff) |
rcu: merge TREE_PREEPT_RCU blocked_tasks[] lists
Combine the current TREE_PREEMPT_RCU ->blocked_tasks[] lists in the
rcu_node structure into a single ->blkd_tasks list with ->gp_tasks
and ->exp_tasks tail pointers. This is in preparation for RCU priority
boosting, which will add a third dimension to the combinatorial explosion
in the ->blocked_tasks[] case, but simply a third pointer in the new
->blkd_tasks case.
Also update documentation to reflect blocked_tasks[] merge
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r-- | kernel/rcutree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 90104a19c564..0ac1cc03f935 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c | |||
@@ -1901,10 +1901,7 @@ static void __init rcu_init_one(struct rcu_state *rsp, | |||
1901 | j / rsp->levelspread[i - 1]; | 1901 | j / rsp->levelspread[i - 1]; |
1902 | } | 1902 | } |
1903 | rnp->level = i; | 1903 | rnp->level = i; |
1904 | INIT_LIST_HEAD(&rnp->blocked_tasks[0]); | 1904 | INIT_LIST_HEAD(&rnp->blkd_tasks); |
1905 | INIT_LIST_HEAD(&rnp->blocked_tasks[1]); | ||
1906 | INIT_LIST_HEAD(&rnp->blocked_tasks[2]); | ||
1907 | INIT_LIST_HEAD(&rnp->blocked_tasks[3]); | ||
1908 | } | 1905 | } |
1909 | } | 1906 | } |
1910 | 1907 | ||