提交 7f0cd633 编写于 作者: P Paul E. McKenney

srcu: Fix rcutorture-statistics typo

The function srcutorture_get_gp_data() duplicated the check for
sp->batch_check0.head instead of also checking sp->batch_check1.head.
The only effect of this typo would be for rcutorture statistics to
understate the fraction of time that an SRCU grace period was in flight,
and only for Classic SRCU.  This commit fixes this typo.
Reported-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 41a2901e
...@@ -469,7 +469,7 @@ static inline void srcutorture_get_gp_data(enum rcutorture_type test_type, ...@@ -469,7 +469,7 @@ static inline void srcutorture_get_gp_data(enum rcutorture_type test_type,
*flags = 0; *flags = 0;
*completed = sp->completed; *completed = sp->completed;
*gpnum = *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)++; (*gpnum)++;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册