Re: [PATCH] rcu: Use printk_deferred when holding rtp->cbs_gbl_lock

From: Zhang Qiao
Date: Fri Mar 18 2022 - 02:47:29 EST




在 2022/3/17 23:49, Steven Rostedt 写道:
> On Thu, 17 Mar 2022 16:47:26 +0800
> Zhang Qiao <zhangqiao22@xxxxxxxxxx> wrote:
>
>> This patch tries to avoid this issue by using printk_deferred().
>
> Isn't the new printk work suppose to resolve this?
> I think the printk_deferred() defer printing via a irq_work_queue and will
not print immediately when holding the cbs_gbl_lock lock.


> If so, can we have another way to quiet these splats if that work is not in
> yet?
> Or we can change type cbs_gbl_lock to spinlock_t for fix it.

thanks.

Zhang Qiao.

> -- Steve
> .
>