RE: [PATCH] kernel/hung_task.c: force ignore_loglevel before panic
From: Liu, Chuansheng
Date: Mon Dec 10 2018 - 00:58:38 EST
> -----Original Message-----
> From: Sergey Senozhatsky [mailto:sergey.senozhatsky.work@xxxxxxxxx]
> Sent: Monday, December 10, 2018 1:46 PM
> To: Liu, Chuansheng <chuansheng.liu@xxxxxxxxx>
> Cc: akpm@xxxxxxxxxxxxxxxxxxxx; pmladek@xxxxxxxx;
> sergey.senozhatsky@xxxxxxxxx; rostedt@xxxxxxxxxxx; dvyukov@xxxxxxxxxx;
> penguin-kernel@xxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH] kernel/hung_task.c: force ignore_loglevel before panic
>
> On (12/10/18 05:40), Liu, Chuansheng wrote:
> > @@ -130,6 +130,13 @@ static void check_hung_task(struct task_struct *t,
> unsigned long timeout)
> > init_utsname()->version);
> > pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\""
> > " disables this message.\n");
> > + /* When sysctl_hung_task_panic is set, we have to force
> > + * ignore_loglevel to get really useful hung task
> > + * information.
> > + */
> > + if (sysctl_hung_task_panic && !ignore_loglevel)
> > + ignore_loglevel = true;
>
> console_verbose()?
Thanks Sergey, it is really my need. I will prepare for a new version of patch:)