Re: [PATCH v2] lockdep: upper limit LOCKDEP_CHAINS_BITS
From: Carlos Llamas
Date: Mon Aug 05 2024 - 21:05:35 EST
On Mon, Aug 05, 2024 at 07:58:07PM +0000, Carlos Llamas wrote:
> On Wed, Jul 31, 2024 at 04:48:23PM -0700, Andrew Morton wrote:
> > btw, the help text "Bitsize for MAX_LOCKDEP_CHAINS" is odd. What's a
> > bitsize? Maybe "bit shift count for..." or such.
>
> Yeah, maybe a _SHIFT suffix would have been better fit for these configs
> instead of _BITS. Similar to PAGE_SHIFT or NODES_SHIFT. Anyways, I can
> send a patch to improve the help text. How about something like:
> "Size for ... (as a power of 2)"
>
> I'll also send a separate patch to fix the rest of the upper limits. Any
> of the (1 << 30) shifts allocates static arrays that blow past the .bss
> segment. Just as originally reporeted by J. R. Okajima.
Ok, I've sent a patchset for these bits at:
https://lore.kernel.org/all/20240806010128.402852-1-cmllamas@xxxxxxxxxx/
Thanks,
Carlos Llamas