Re: [PATCH] bpf: defer printk() inside __bpf_prog_run()

From: Steven Rostedt
Date: Wed Jun 26 2024 - 20:09:22 EST


On Thu, 27 Jun 2024 08:08:57 +0900
Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> How do you respond to Petr Mladek's comment
>
> Yeah, converting printk() into printk_deferred() or using
> printk_deferred_enter() around particular code paths is a whac-a-mole
> game.
>
> at https://lkml.kernel.org/r/ZnvVQ5cs9F0b7paI@xxxxxxxxxxxxxxx ?

I agree with that. And your solution is no different than whack-a-mole.
It's just that you used a bigger hammer to wack the mole.

-- Steve