aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r--kernel/rcu/tree.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 35152414760d..942d529fccbc 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2633,9 +2633,8 @@ static void rcu_adopt_orphan_cbs(struct rcu_state *rsp, unsigned long flags)
2633 return; 2633 return;
2634 2634
2635 /* Do the accounting first. */ 2635 /* Do the accounting first. */
2636 rdp->n_cbs_adopted += rcu_cblist_n_cbs(&rsp->orphan_done); 2636 rdp->n_cbs_adopted += rsp->orphan_done.len;
2637 if (rcu_cblist_n_lazy_cbs(&rsp->orphan_done) != 2637 if (rcu_cblist_n_lazy_cbs(&rsp->orphan_done) != rsp->orphan_done.len)
2638 rcu_cblist_n_cbs(&rsp->orphan_done))
2639 rcu_idle_count_callbacks_posted(); 2638 rcu_idle_count_callbacks_posted();
2640 rcu_segcblist_insert_count(&rdp->cblist, &rsp->orphan_done); 2639 rcu_segcblist_insert_count(&rdp->cblist, &rsp->orphan_done);
2641 2640
@@ -2792,14 +2791,14 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
2792 * Stop only if limit reached and CPU has something to do. 2791 * Stop only if limit reached and CPU has something to do.
2793 * Note: The rcl structure counts down from zero. 2792 * Note: The rcl structure counts down from zero.
2794 */ 2793 */
2795 if (-rcu_cblist_n_cbs(&rcl) >= bl && 2794 if (-rcl.len >= bl &&
2796 (need_resched() || 2795 (need_resched() ||
2797 (!is_idle_task(current) && !rcu_is_callbacks_kthread()))) 2796 (!is_idle_task(current) && !rcu_is_callbacks_kthread())))
2798 break; 2797 break;
2799 } 2798 }
2800 2799
2801 local_irq_save(flags); 2800 local_irq_save(flags);
2802 count = -rcu_cblist_n_cbs(&rcl); 2801 count = -rcl.len;
2803 trace_rcu_batch_end(rsp->name, count, !!rcl.head, need_resched(), 2802 trace_rcu_batch_end(rsp->name, count, !!rcl.head, need_resched(),
2804 is_idle_task(current), rcu_is_callbacks_kthread()); 2803 is_idle_task(current), rcu_is_callbacks_kthread());
2805 2804