From: Tejun Heo <tj@kernel.org>
To: Rik van Riel <riel@fb.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org, kernel-team@fb.com,
Steven Rostedt <rostedt@goodmis.org>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
Petr Mladek <pmladek@suse.com>
Subject: Re: [PATCH] lockdep: Avoid triggering hardlockup from debug_show_all_locks()
Date: Tue, 23 Jan 2018 12:57:06 -0800 [thread overview]
Message-ID: <20180123205706.GH1771050@devbig577.frc2.facebook.com> (raw)
In-Reply-To: <1516734237.31954.17.camel@fb.com>
Hello,
(cc'ing Steven, Sergey and Petr who are working on printk)
On Tue, Jan 23, 2018 at 02:03:57PM -0500, Rik van Riel wrote:
> On Mon, 2018-01-22 at 14:00 -0800, Tejun Heo wrote:
> > debug_show_all_locks() iterates all tasks and print held locks whole
> > holding tasklist_lock. This can take a while on a slow console
> > device
> > and may end up triggering NMI hardlockup detector if someone else
> > ends
> > up waiting for tasklist_lock.
> >
> > Touch the NMI watchdog while printing the held locks to avoid
> > spuriously triggering the hardlockup detector.
> >
> > Signed-off-by: Tejun Heo <tj@kernel.org>
>
> On this patch:
>
> Acked-by: Rik van Riel <riel@surriel.com>
>
>
> However, it seems like we run into things like
> this on a fairly regular (though not very frequent)
> basis. Would it make sense to go through the code
> and add sprinkle around a few more touch_nmi_watchdog()
> calls?
>
> After all, there are maybe a few dozen places where
> we print out a lot of debugging information.
Yeah, it's ridiculous how often printk ends up escalating otherwise
recoverable situations into system crashes. I don't know what the
right answer is. For spurious NMI hardlockups, maybe auditing debug
paths and adding touch_nmi_watchdog() would be enough but that also is
a pretty leaky approach.
Thanks.
--
tejun
next prev parent reply other threads:[~2018-01-23 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 22:00 [PATCH] lockdep: Avoid triggering hardlockup from debug_show_all_locks() Tejun Heo
2018-01-23 19:03 ` Rik van Riel
2018-01-23 20:57 ` Tejun Heo [this message]
2018-01-23 21:00 ` Steven Rostedt
2018-01-23 21:11 ` Tejun Heo
2018-01-24 2:49 ` Sergey Senozhatsky
2018-01-24 2:54 ` Steven Rostedt
2018-01-24 5:00 ` Sergey Senozhatsky
2018-01-24 19:10 ` Tejun Heo
2018-01-24 10:38 ` [tip:locking/urgent] locking/lockdep: " tip-bot for Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180123205706.GH1771050@devbig577.frc2.facebook.com \
--to=tj@kernel.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=riel@fb.com \
--cc=rostedt@goodmis.org \
--cc=sergey.senozhatsky@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox