diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h index bc55b5716c37..27f871c88e0a 100644 --- a/kernel/rcu/rcu.h +++ b/kernel/rcu/rcu.h @@ -469,7 +469,7 @@ static inline void srcutorture_get_gp_data(enum rcutorture_type test_type, *flags = 0; *completed = sp->completed; *gpnum = *completed; - if (sp->batch_queue.head || sp->batch_check0.head || sp->batch_check0.head) + if (sp->batch_queue.head || sp->batch_check0.head || sp->batch_check1.head) (*gpnum)++; }