Re: [PATCH] locking/lockdep: use pr_warn_once for reporting that lockdep is turned off

From: Tetsuo Handa
Date: Wed Jul 20 2022 - 11:14:21 EST


On 2022/07/20 23:59, Peter Zijlstra wrote:
> On Wed, Jul 20, 2022 at 10:01:36PM +0900, Tetsuo Handa wrote:
>> debug_show_all_locks() can be called for multiple times if
>> hung_task_call_panic = 0. No need to repeat this message.
>
> That one extra line is really a problem?

When lockdep is turned off during boot or some testing, khungtaskd repeats
this message, and I feel this repeated message useless.