rcu: gp_max is protected by root rcu_node's lock
Because gp_max is protected by root rcu_node's lock, this commit moves the gp_max definition to the region of the rcu_node structure containing fields protected by this lock. Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
Родитель
c6dfd72b7a
Коммит
00943a609d
|
@ -302,6 +302,8 @@ struct rcu_state {
|
||||||
u8 boost ____cacheline_internodealigned_in_smp;
|
u8 boost ____cacheline_internodealigned_in_smp;
|
||||||
/* Subject to priority boost. */
|
/* Subject to priority boost. */
|
||||||
unsigned long gp_seq; /* Grace-period sequence #. */
|
unsigned long gp_seq; /* Grace-period sequence #. */
|
||||||
|
unsigned long gp_max; /* Maximum GP duration in */
|
||||||
|
/* jiffies. */
|
||||||
struct task_struct *gp_kthread; /* Task for grace periods. */
|
struct task_struct *gp_kthread; /* Task for grace periods. */
|
||||||
struct swait_queue_head gp_wq; /* Where GP task waits. */
|
struct swait_queue_head gp_wq; /* Where GP task waits. */
|
||||||
short gp_flags; /* Commands for GP task. */
|
short gp_flags; /* Commands for GP task. */
|
||||||
|
@ -347,8 +349,6 @@ struct rcu_state {
|
||||||
/* a reluctant CPU. */
|
/* a reluctant CPU. */
|
||||||
unsigned long n_force_qs_gpstart; /* Snapshot of n_force_qs at */
|
unsigned long n_force_qs_gpstart; /* Snapshot of n_force_qs at */
|
||||||
/* GP start. */
|
/* GP start. */
|
||||||
unsigned long gp_max; /* Maximum GP duration in */
|
|
||||||
/* jiffies. */
|
|
||||||
const char *name; /* Name of structure. */
|
const char *name; /* Name of structure. */
|
||||||
char abbr; /* Abbreviated name. */
|
char abbr; /* Abbreviated name. */
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче