Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1734520 > unrolled thread

Re: Kernel Panic sysrq questions

Started byRandy Dunlap <rdunlap@infradead.org>
First post2017-09-19 00:40 +0200
Last post2017-09-19 02:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Kernel Panic sysrq questions Randy Dunlap <rdunlap@infradead.org> - 2017-09-19 00:40 +0200
    Re: Kernel Panic sysrq questions Tejun Heo <tj@kernel.org> - 2017-09-19 02:30 +0200

#1734520 — Re: Kernel Panic sysrq questions

FromRandy Dunlap <rdunlap@infradead.org>
Date2017-09-19 00:40 +0200
SubjectRe: Kernel Panic sysrq questions
Message-ID<urcRQ-47U-7@gated-at.bofh.it>
On 08/18/17 08:40, Sriram V wrote:
> Hi,
> 
> 1. I am testing my watchdog driver. The driver uses the internal
> watchdog (Internal to SOC).
> 2. I use a single core SOC.
> 3. I have a workqueue which pets the watchdog every 60 seconds.
> 4. I trigger a kernel crash by doing a echo c > /proc/sysrq-trigger to
> trigger  a kernel crash
> 5. Even after the crash, I observe that the workqueue gets
> periodically executed. (I have a printk
>     inside the workqueue before the pet as a result the watchdog does
> not reset the board.
> 
> My Understanding is When a fatal panic happens, The Kernel is in
> frozen state (no workques
> or tasks get executed).
> 
> Is my understanding correct or am i missing something here.

Hi,
What kernel version?

I don't see anything in the wq docs about that specific point.

Tejun?


-- 
~Randy

[toc] | [next] | [standalone]


#1734556

FromTejun Heo <tj@kernel.org>
Date2017-09-19 02:30 +0200
Message-ID<ureAh-5lt-3@gated-at.bofh.it>
In reply to#1734520
Hello,

On Mon, Sep 18, 2017 at 03:35:36PM -0700, Randy Dunlap wrote:
> > My Understanding is When a fatal panic happens, The Kernel is in
> > frozen state (no workques
> > or tasks get executed).
> > 
> > Is my understanding correct or am i missing something here.
> 
> Hi,
> What kernel version?
> 
> I don't see anything in the wq docs about that specific point.

There's nothing workqueue specific there.  Panic doesn't bring the
system to a complete stop in general.  If you wanna change how the
system behaves post-panic, please take a look at panic= boot param.

Thanks.

-- 
tejun

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web