On 9/30/22 13:00, Ryan Huang wrote:
+ int "Bitsize for MAX_LOCKDEP_KEYS"
+ depends on LOCKDEP && !LOCKDEP_SMALL
+ range 10 30
+ default 13
+ Try increasing this value if you hit "BUG: MAX_LOCKDEP_KEYS too low!" message.
int "Bitsize for MAX_STACK_TRACE_ENTRIES"
depends on LOCKDEP && !LOCKDEP_SMALL
The lockdep key is embedded in a bit field within the held_lock structure to utilize all the 32 bits of an integer. Changing its size will require adjusting other bit fields or expand the bit field size from 32 bits to 64 bits. 13 bits allows up to 8k unique lock classes. Unless there is good evidence that we are going to run out of that, we shouldn't change it.