[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200720142923.mrudcweyttlmnhqp@linux-p48b>
Date: Mon, 20 Jul 2020 07:29:23 -0700
From: Davidlohr Bueso <dave@...olabs.net>
To: "Joel Fernandes (Google)" <joel@...lfernandes.org>
Cc: linux-kernel@...r.kernel.org, Joel Fernandes <joelaf@...gle.com>,
Ingo Molnar <mingo@...hat.com>,
Josh Triplett <josh@...htriplett.org>,
Lai Jiangshan <jiangshanlai@...il.com>,
Marco Elver <elver@...gle.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
"Paul E. McKenney" <paulmck@...nel.org>, rcu@...r.kernel.org,
Steven Rostedt <rostedt@...dmis.org>,
"Uladzislau Rezki (Sony)" <urezki@...il.com>
Subject: Re: [PATCH RFC] rcu/segcblist: Add counters to segcblist
datastructure
On Sat, 18 Jul 2020, Joel Fernandes (Google) wrote:
>+/* Move from's segment length to to's segment. */
>+static void rcu_segcblist_move_seglen(struct rcu_segcblist *rsclp, int from, int to)
>+{
>+ long len = rcu_segcblist_get_seglen(rsclp, from);
>+
>+ if (!len || from == to)
>+ return;
Nit: You probably wanna do the parameter sanity checks before the
atomic_read.
Thanks,
Davidlohr
Powered by blists - more mailing lists