aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/rcuclassic.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/include/linux/rcuclassic.h b/include/linux/rcuclassic.h
index c847e59c6006..04c728147be0 100644
--- a/include/linux/rcuclassic.h
+++ b/include/linux/rcuclassic.h
@@ -66,11 +66,7 @@ static inline int rcu_batch_after(long a, long b)
66 return (a - b) > 0; 66 return (a - b) > 0;
67} 67}
68 68
69/* 69/* Per-CPU data for Read-Copy UPdate. */
70 * Per-CPU data for Read-Copy UPdate.
71 * nxtlist - new callbacks are added here
72 * curlist - current batch for which quiescent cycle started if any
73 */
74struct rcu_data { 70struct rcu_data {
75 /* 1) quiescent state handling : */ 71 /* 1) quiescent state handling : */
76 long quiescbatch; /* Batch # for grace period */ 72 long quiescbatch; /* Batch # for grace period */
@@ -78,12 +74,24 @@ struct rcu_data {
78 int qs_pending; /* core waits for quiesc state */ 74 int qs_pending; /* core waits for quiesc state */
79 75
80 /* 2) batch handling */ 76 /* 2) batch handling */
81 long batch; /* Batch # for current RCU batch */ 77 /*
78 * if nxtlist is not NULL, then:
79 * batch:
80 * The batch # for the last entry of nxtlist
81 * [*nxttail[1], NULL = *nxttail[2]):
82 * Entries that batch # <= batch
83 * [*nxttail[0], *nxttail[1]):
84 * Entries that batch # <= batch - 1
85 * [nxtlist, *nxttail[0]):
86 * Entries that batch # <= batch - 2
87 * The grace period for these entries has completed, and
88 * the other grace-period-completed entries may be moved
89 * here temporarily in rcu_process_callbacks().
90 */
91 long batch;
82 struct rcu_head *nxtlist; 92 struct rcu_head *nxtlist;
83 struct rcu_head **nxttail; 93 struct rcu_head **nxttail[3];
84 long qlen; /* # of queued callbacks */ 94 long qlen; /* # of queued callbacks */
85 struct rcu_head *curlist;
86 struct rcu_head **curtail;
87 struct rcu_head *donelist; 95 struct rcu_head *donelist;
88 struct rcu_head **donetail; 96 struct rcu_head **donetail;
89 long blimit; /* Upper limit on a processed batch */ 97 long blimit; /* Upper limit on a processed batch */