diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-05-02 12:39:09 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 21:52:26 -0400 |
commit | aaaad0bfac019bb7701f92ebc1b31b4f85e47b55 (patch) | |
tree | ffed90fcb1e491863c23cb87ee4514beff8c2121 | |
parent | 6b5fc3a1331810db407c9e0e673dc1837afdc9d0 (diff) |
rcu: Flag need for rcu_node_tree.h and rcu_segcblist.h visibility
The rcu_node_tree.h and rcu_segcblist.h header files in the include/linux
directory might appear at first sight to be internal to the RCU
implementation. However, the definitions in these files are needed to
determine the size of TREE SRCU's srcu_struct structure, so they must
be externally visible, which is why they live in include/linux.
This commit adds comments to this effect to those files.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | include/linux/rcu_node_tree.h | 4 | ||||
-rw-r--r-- | include/linux/rcu_segcblist.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/rcu_node_tree.h b/include/linux/rcu_node_tree.h index 4b766b61e1a0..426cee67f0e2 100644 --- a/include/linux/rcu_node_tree.h +++ b/include/linux/rcu_node_tree.h | |||
@@ -7,6 +7,10 @@ | |||
7 | * unlimited scalability while maintaining a constant level of contention | 7 | * unlimited scalability while maintaining a constant level of contention |
8 | * on the root node. | 8 | * on the root node. |
9 | * | 9 | * |
10 | * This seemingly RCU-private file must be available to SRCU users | ||
11 | * because the size of the TREE SRCU srcu_struct structure depends | ||
12 | * on these definitions. | ||
13 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | 14 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License as published by | 15 | * it under the terms of the GNU General Public License as published by |
12 | * the Free Software Foundation; either version 2 of the License, or | 16 | * the Free Software Foundation; either version 2 of the License, or |
diff --git a/include/linux/rcu_segcblist.h b/include/linux/rcu_segcblist.h index ba4d2621d9ca..c3ad00e63556 100644 --- a/include/linux/rcu_segcblist.h +++ b/include/linux/rcu_segcblist.h | |||
@@ -1,6 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * RCU segmented callback lists | 2 | * RCU segmented callback lists |
3 | * | 3 | * |
4 | * This seemingly RCU-private file must be available to SRCU users | ||
5 | * because the size of the TREE SRCU srcu_struct structure depends | ||
6 | * on these definitions. | ||
7 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | 9 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or | 10 | * the Free Software Foundation; either version 2 of the License, or |