mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
srcu: Update cleanup_srcu_struct() comment
Now that we have polled SRCU grace periods, a grace period can be started by start_poll_synchronize_srcu() as well as call_srcu(), synchronize_srcu(), and synchronize_srcu_expedited(). This commit therefore calls out this new start_poll_synchronize_srcu() possibility in the comment on the WARN_ON(). Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
395e73bd8d
commit
d7b0615cb8
@ -667,7 +667,10 @@ void cleanup_srcu_struct(struct srcu_struct *ssp)
|
||||
pr_info("%s: Active srcu_struct %p read state: %d gp state: %lu/%lu\n",
|
||||
__func__, ssp, rcu_seq_state(READ_ONCE(sup->srcu_gp_seq)),
|
||||
rcu_seq_current(&sup->srcu_gp_seq), sup->srcu_gp_seq_needed);
|
||||
return; /* Caller forgot to stop doing call_srcu()? */
|
||||
return; // Caller forgot to stop doing call_srcu()?
|
||||
// Or caller invoked start_poll_synchronize_srcu()
|
||||
// and then cleanup_srcu_struct() before that grace
|
||||
// period ended?
|
||||
}
|
||||
kfree(sup->node);
|
||||
sup->node = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user