rcu: Fix detection of abruptly-ending stall
[deliverable/linux.git] / kernel / rcutree.c
index 4b97bba7396e6194db4bf5b644ef8b5a1997c974..dc8c5284fe06a889e156f9b2d7599aeacd40cb58 100644 (file)
@@ -733,7 +733,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
        int cpu;
        long delta;
        unsigned long flags;
-       int ndetected;
+       int ndetected = 0;
        struct rcu_node *rnp = rcu_get_root(rsp);
 
        /* Only let one CPU complain about others per time interval. */
@@ -774,7 +774,7 @@ static void print_other_cpu_stall(struct rcu_state *rsp)
         */
        rnp = rcu_get_root(rsp);
        raw_spin_lock_irqsave(&rnp->lock, flags);
-       ndetected = rcu_print_task_stall(rnp);
+       ndetected += rcu_print_task_stall(rnp);
        raw_spin_unlock_irqrestore(&rnp->lock, flags);
 
        print_cpu_stall_info_end();
This page took 0.043879 seconds and 5 git commands to generate.