lkml.org 
[lkml]   [2019]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2019-03-13 21:26    [W:0.111 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site