diff options
Diffstat (limited to 'include/linux/srcutiny.h')
| -rw-r--r-- | include/linux/srcutiny.h | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/srcutiny.h b/include/linux/srcutiny.h index 6cfaa0a9a9b9..5aa5e0faf6a1 100644 --- a/include/linux/srcutiny.h +++ b/include/linux/srcutiny.h @@ -15,10 +15,10 @@  struct srcu_struct {  	short srcu_lock_nesting[2];	/* srcu_read_lock() nesting depth. */ -	unsigned short srcu_idx;	/* Current reader array element in bit 0x2. */ -	unsigned short srcu_idx_max;	/* Furthest future srcu_idx request. */  	u8 srcu_gp_running;		/* GP workqueue running? */  	u8 srcu_gp_waiting;		/* GP waiting for readers? */ +	unsigned long srcu_idx;		/* Current reader array element in bit 0x2. */ +	unsigned long srcu_idx_max;	/* Furthest future srcu_idx request. */  	struct swait_queue_head srcu_wq;  					/* Last srcu_read_unlock() wakes GP. */  	struct rcu_head *srcu_cb_head;	/* Pending callbacks: Head. */ @@ -82,10 +82,12 @@ static inline void srcu_torture_stats_print(struct srcu_struct *ssp,  	int idx;  	idx = ((data_race(READ_ONCE(ssp->srcu_idx)) + 1) & 0x2) >> 1; -	pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%hd,%hd)\n", +	pr_alert("%s%s Tiny SRCU per-CPU(idx=%d): (%hd,%hd) gp: %lu->%lu\n",  		 tt, tf, idx,  		 data_race(READ_ONCE(ssp->srcu_lock_nesting[!idx])), -		 data_race(READ_ONCE(ssp->srcu_lock_nesting[idx]))); +		 data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])), +		 data_race(READ_ONCE(ssp->srcu_idx)), +		 data_race(READ_ONCE(ssp->srcu_idx_max)));  }  #endif  |