[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200917212101.53287f29@rorschach.local.home>
Date: Thu, 17 Sep 2020 21:21:01 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Marco Elver <elver@...gle.com>
Cc: Eric Dumazet <edumazet@...gle.com>,
Peter Zijlstra <peterz@...radead.org>,
LKML <linux-kernel@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] random32: Use rcuidle variant for tracepoint
[ Late reply, due to Plumbers followed by a much needed vacation and
then drowning in 3 weeks of unread email! ]
On Fri, 21 Aug 2020 17:35:32 +0200
Marco Elver <elver@...gle.com> wrote:
> So, if the _rcuidle() variant here doesn't break your usecase, there
> should be no harm in using the _rcuidle() variant. This also lifts the
> restriction on where prandom_u32() is usable to what it was before,
> which should be any context.
>
> Steven, Peter: What's the downside to of _rcuidle()?
_rcuidle() only has a slightly more overhead in the tracing path (it's
no different when not tracing). There's not a issue with _rcuidle()
itself. The issue is that we need to have it. We'd like it to be that
rcu *is* watching always except for a very minimal locations when
switching context (kernel to and from user and running to and from
idle), and then we just don't let tracing or anything that needs rcu in
those locations.
But for your patch:
Acked-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
-- Steve
Powered by blists - more mailing lists