[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190313202640.GJ50184@devbig004.ftw2.facebook.com>
Date: Wed, 13 Mar 2019 13:26:40 -0700
From: Tejun Heo <tj@...nel.org>
To: Barret Rhoden <brho@...gle.com>
Cc: Christopher Lameter <cl@...ux.com>,
Dennis Zhou <dennis@...nel.org>,
Eial Czerwacki <eial@...lemp.com>,
linux-kernel@...r.kernel.org, Shai Fultheim <shai@...lemp.com>,
Oren Twaig <oren@...lemp.com>,
"Paul E. McKenney" <paulmck@...ux.ibm.com>
Subject: Re: [PATCH] percpu/module resevation: change resevation size iff
X86_VSMP is set
Hello,
On Wed, Mar 13, 2019 at 03:40:04PM -0400, Barret Rhoden wrote:
> Are there any other alternatives? Not using static SRCU in any code
> that could be built as a module seems a little harsh.
Yes, allocate the srcu dynamically on module init and destroy on
module exit. That's how the other similar case got solved too. We
can't keep bumping up reserved size by the number of static SRCUs in
modules. It's mostly there to make trivial small things easier. We
don't lose anything meaningful by allocating srcu dynamically.
Thanks.
--
tejun
Powered by blists - more mailing lists