rcutorture: Convert rcutorture_get_gp_data() to ->gp_seq
SRCU has long used ->srcu_gp_seq, and now RCU uses ->gp_seq. This commit therefore moves the rcutorture_get_gp_data() function from a ->gpnum / ->completed pair to ->gp_seq. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
@@ -638,7 +638,7 @@ EXPORT_SYMBOL_GPL(rcutorture_record_test_transition);
|
||||
* Send along grace-period-related data for rcutorture diagnostics.
|
||||
*/
|
||||
void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags,
|
||||
unsigned long *gpnum, unsigned long *completed)
|
||||
unsigned long *gp_seq)
|
||||
{
|
||||
struct rcu_state *rsp = NULL;
|
||||
|
||||
@@ -658,8 +658,7 @@ void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags,
|
||||
if (rsp == NULL)
|
||||
return;
|
||||
*flags = READ_ONCE(rsp->gp_flags);
|
||||
*gpnum = READ_ONCE(rsp->gpnum);
|
||||
*completed = READ_ONCE(rsp->completed);
|
||||
*gp_seq = rcu_seq_current(&rsp->gp_seq);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rcutorture_get_gp_data);
|
||||
|
||||
|
Reference in New Issue
Block a user