Messages in this thread | | | From | Mikhail Gavrilov <> | Date | Thu, 4 Aug 2022 00:28:31 +0500 | Subject | Re: BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! |
| |
On Tue, Jul 26, 2022 at 9:47 PM David Sterba <dsterba@suse.cz> wrote: > > On Tue, Jul 26, 2022 at 05:32:54PM +0500, Mikhail Gavrilov wrote: > > Hi guys. > > Always with intensive writing on a btrfs volume, the message "BUG: > > MAX_LOCKDEP_CHAIN_HLOCKS too low!" appears in the kernel logs. > > Increase the config value of LOCKDEP_CHAINS_BITS, default is 16, 18 > tends to work.
I confirm that after bumping LOCKDEP_CHAINS_BITS to 18 several days of continuous writing on the BTRFS partition with different files with a total size of 10Tb I didn't see this kernel bug message again. Tetsuo, I saw your commit 5dc33592e95534dc8455ce3e9baaaf3dae0fff82 [1] set for LOCKDEP_CHAINS_BITS default value 16. Why not increase LOCKDEP_CHAINS_BITS to 18 by default? Thanks.
[1] https://github.com/torvalds/linux/blame/master/lib/Kconfig.debug#L1387
-- Best Regards, Mike Gavrilov.
| |