From: "Paul E. McKenney" <paulmck@kernel.org> To: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, Peter Zijlstra <peterz@infradead.org>, Josh Triplett <josh@joshtriplett.org>, Steven Rostedt <rostedt@goodmis.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Lai Jiangshan <jiangshanlai@gmail.com>, Joel Fernandes <joel@joelfernandes.org>, rcu@vger.kernel.org Subject: Re: [PATCH 31/38] rcu: Replace deprecated CPU-hotplug functions. Date: Tue, 3 Aug 2021 09:00:21 -0700 [thread overview] Message-ID: <20210803160021.GR4397@paulmck-ThinkPad-P17-Gen-1> (raw) In-Reply-To: <20210803141621.780504-32-bigeasy@linutronix.de> On Tue, Aug 03, 2021 at 04:16:14PM +0200, Sebastian Andrzej Siewior wrote: > The functions get_online_cpus() and put_online_cpus() have been > deprecated during the CPU hotplug rework. They map directly to > cpus_read_lock() and cpus_read_unlock(). > > Replace deprecated CPU-hotplug functions with the official version. > The behavior remains unchanged. > > Cc: "Paul E. McKenney" <paulmck@kernel.org> > Cc: Josh Triplett <josh@joshtriplett.org> > Cc: Steven Rostedt <rostedt@goodmis.org> > Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> > Cc: Lai Jiangshan <jiangshanlai@gmail.com> > Cc: Joel Fernandes <joel@joelfernandes.org> > Cc: rcu@vger.kernel.org > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> I have queued this one and 35/38 (rcutorture) for v5.16. If you would prefer to send them some other route, please let me know and: Acked-by: Paul E. McKenney <paulmck@kernel.org> > --- > kernel/rcu/tree.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index 51f24ecd94b26..f116ce58f4e68 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@ -4050,7 +4050,7 @@ void rcu_barrier(void) > */ > init_completion(&rcu_state.barrier_completion); > atomic_set(&rcu_state.barrier_cpu_count, 2); > - get_online_cpus(); > + cpus_read_lock(); > > /* > * Force each CPU with callbacks to register a new callback. > @@ -4081,7 +4081,7 @@ void rcu_barrier(void) > rcu_state.barrier_sequence); > } > } > - put_online_cpus(); > + cpus_read_unlock(); > > /* > * Now that we have an rcu_barrier_callback() callback on each > -- > 2.32.0 >
next prev parent reply other threads:[~2021-08-03 16:00 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-03 14:15 [PATCH 00/38] Replace deprecated CPU-hotplug Sebastian Andrzej Siewior 2021-08-03 14:16 ` [PATCH 31/38] rcu: Replace deprecated CPU-hotplug functions Sebastian Andrzej Siewior 2021-08-03 16:00 ` Paul E. McKenney [this message] 2021-08-10 12:42 ` Thomas Gleixner 2021-08-10 18:20 ` Paul E. McKenney 2021-08-03 15:30 ` [PATCH 00/38] Replace deprecated CPU-hotplug Hans de Goede 2021-08-03 16:10 ` Sebastian Andrzej Siewior
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210803160021.GR4397@paulmck-ThinkPad-P17-Gen-1 \ --to=paulmck@kernel.org \ --cc=bigeasy@linutronix.de \ --cc=jiangshanlai@gmail.com \ --cc=joel@joelfernandes.org \ --cc=josh@joshtriplett.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mathieu.desnoyers@efficios.com \ --cc=peterz@infradead.org \ --cc=rcu@vger.kernel.org \ --cc=rostedt@goodmis.org \ --cc=tglx@linutronix.de \ --subject='Re: [PATCH 31/38] rcu: Replace deprecated CPU-hotplug functions.' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).