aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu/srcutiny.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rcu/srcutiny.c')
-rw-r--r--kernel/rcu/srcutiny.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/rcu/srcutiny.c b/kernel/rcu/srcutiny.c
index d233f0c63f6f..b46e6683f8c9 100644
--- a/kernel/rcu/srcutiny.c
+++ b/kernel/rcu/srcutiny.c
@@ -48,7 +48,7 @@ static int init_srcu_struct_fields(struct srcu_struct *sp)
48 sp->srcu_gp_waiting = false; 48 sp->srcu_gp_waiting = false;
49 sp->srcu_idx = 0; 49 sp->srcu_idx = 0;
50 INIT_WORK(&sp->srcu_work, srcu_drive_gp); 50 INIT_WORK(&sp->srcu_work, srcu_drive_gp);
51 INIT_LIST_HEAD(&sp->srcu_boot_entry); 51 INIT_LIST_HEAD(&sp->srcu_work.entry);
52 return 0; 52 return 0;
53} 53}
54 54
@@ -185,8 +185,8 @@ void call_srcu(struct srcu_struct *sp, struct rcu_head *rhp,
185 if (!READ_ONCE(sp->srcu_gp_running)) { 185 if (!READ_ONCE(sp->srcu_gp_running)) {
186 if (likely(srcu_init_done)) 186 if (likely(srcu_init_done))
187 schedule_work(&sp->srcu_work); 187 schedule_work(&sp->srcu_work);
188 else if (list_empty(&sp->srcu_boot_entry)) 188 else if (list_empty(&sp->srcu_work.entry))
189 list_add(&sp->srcu_boot_entry, &srcu_boot_list); 189 list_add(&sp->srcu_work.entry, &srcu_boot_list);
190 } 190 }
191} 191}
192EXPORT_SYMBOL_GPL(call_srcu); 192EXPORT_SYMBOL_GPL(call_srcu);
@@ -224,8 +224,8 @@ void __init srcu_init(void)
224 srcu_init_done = true; 224 srcu_init_done = true;
225 while (!list_empty(&srcu_boot_list)) { 225 while (!list_empty(&srcu_boot_list)) {
226 sp = list_first_entry(&srcu_boot_list, 226 sp = list_first_entry(&srcu_boot_list,
227 struct srcu_struct, srcu_boot_entry); 227 struct srcu_struct, srcu_work.entry);
228 list_del_init(&sp->srcu_boot_entry); 228 list_del_init(&sp->srcu_work.entry);
229 schedule_work(&sp->srcu_work); 229 schedule_work(&sp->srcu_work);
230 } 230 }
231} 231}