* [Kernel-janitors] panic todo?
@ 2004-06-11 19:26 Kristen Carlson
2004-06-13 0:24 ` Randy.Dunlap
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Kristen Carlson @ 2004-06-11 19:26 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 181 bytes --]
Hello,
I was wondering if anyone was working on the item listed in the "TODO" file
regarding removing panic() from drivers and replacing it with machine_restart()?
Thanks,
Kristen
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
@ 2004-06-13 0:24 ` Randy.Dunlap
2004-06-13 13:39 ` maks attems
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2004-06-13 0:24 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]
On Sat, 12 Jun 2004 11:53:36 +0200 (Walter Harms) wrote:
|
| hi,
| just for my understanding. i would exspect a halt on panic()
| while a machine_reboot() is a reboot !?
RTSL. or read Documentation/kernel-parameters.txt:
doc:
panic= [KNL] Kernel behaviour on panic
Format: <timeout>
source: kernel/panic.c::panic():
if (panic_timeout > 0)
{
int i;
/*
* Delay timeout seconds before rebooting the machine.
* We can't use the "normal" timers since we just panicked..
*/
printk(KERN_EMERG "Rebooting in %d seconds..",panic_timeout);
for (i = 0; i < panic_timeout; i++) {
touch_nmi_watchdog();
mdelay(1000);
}
/*
* Should we run the reboot notifier. For the moment Im
* choosing not too. It might crash, be corrupt or do
* more harm than good for other reasons.
*/
machine_restart(NULL);
}
So the default behavior is to panic and halt, but there is an
option to restart after panic if that's what is needed/wanted.
| - - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
| From: Kristen Carlson <kristenc@cs.pdx.edu>
| Subject: [Kernel-janitors] panic todo?
| Date: 06/11/04 21:26
|
| Hello,
| I was wondering if anyone was working on the item listed in the "TODO" file
| regarding removing panic() from drivers and replacing it with machine_restart()?
|
| Thanks,
| Kristen
--
~Randy
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
2004-06-13 0:24 ` Randy.Dunlap
@ 2004-06-13 13:39 ` maks attems
2004-06-14 16:00 ` Kristen Carlson
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: maks attems @ 2004-06-13 13:39 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 411 bytes --]
On Sat, 12 Jun 2004, Randy.Dunlap wrote:
> On Sat, 12 Jun 2004 11:53:36 +0200 (Walter Harms) wrote:
>
> |
> | hi,
> | just for my understanding. i would exspect a halt on panic()
> | while a machine_reboot() is a reboot !?
>
> RTSL. or read Documentation/kernel-parameters.txt:
an interesting article on the topic from Jonathan Corbet:
http://lwn.net/Articles/87684/
features a disk dump patch.
a++ maks
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
2004-06-13 0:24 ` Randy.Dunlap
2004-06-13 13:39 ` maks attems
@ 2004-06-14 16:00 ` Kristen Carlson
2004-06-14 16:05 ` Randy.Dunlap
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Kristen Carlson @ 2004-06-14 16:00 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 991 bytes --]
>
> On Sat, 12 Jun 2004, Randy.Dunlap wrote:
>
> > On Sat, 12 Jun 2004 11:53:36 +0200 (Walter Harms) wrote:
> >
> > |
> > | hi,
> > | just for my understanding. i would exspect a halt on panic()
> > | while a machine_reboot() is a reboot !?
> >
> > RTSL. or read Documentation/kernel-parameters.txt:
>
> an interesting article on the topic from Jonathan Corbet:
> http://lwn.net/Articles/87684/
> features a disk dump patch.
>
> a++ maks
>
Having thought about it a little more, I now question why this is on
the todo list at all. It doesn't make sense to just replace panic()
with machine_restart(). It does make sense to audit the use of panic
in device drivers to make sure that panic isn't being used as a lazy
way of not dealing with error conditions, but even then I wouldn't
think you would want to call machine_restart(). In fact, it seems to
me that unless you are the watchdog driver, you don't want to be shutting
the machine down.
--
WWXD (What Would Xena Do?)
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
` (2 preceding siblings ...)
2004-06-14 16:00 ` Kristen Carlson
@ 2004-06-14 16:05 ` Randy.Dunlap
2004-06-14 16:47 ` maximilian attems
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2004-06-14 16:05 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]
On Mon, 14 Jun 2004 09:00:24 -0700 (PDT) Kristen Carlson wrote:
| >
| > On Sat, 12 Jun 2004, Randy.Dunlap wrote:
| >
| > > On Sat, 12 Jun 2004 11:53:36 +0200 (Walter Harms) wrote:
| > >
| > > |
| > > | hi,
| > > | just for my understanding. i would exspect a halt on panic()
| > > | while a machine_reboot() is a reboot !?
| > >
| > > RTSL. or read Documentation/kernel-parameters.txt:
| >
| > an interesting article on the topic from Jonathan Corbet:
| > http://lwn.net/Articles/87684/
| > features a disk dump patch.
| >
| > a++ maks
| >
| Having thought about it a little more, I now question why this is on
| the todo list at all. It doesn't make sense to just replace panic()
| with machine_restart(). It does make sense to audit the use of panic
| in device drivers to make sure that panic isn't being used as a lazy
| way of not dealing with error conditions, but even then I wouldn't
| think you would want to call machine_restart(). In fact, it seems to
| me that unless you are the watchdog driver, you don't want to be shutting
| the machine down.
|
| --
| WWXD (What Would Xena Do?)
I agree with Kristen. Xena would remove it from the TODO list.
--
~Randy
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
` (3 preceding siblings ...)
2004-06-14 16:05 ` Randy.Dunlap
@ 2004-06-14 16:47 ` maximilian attems
2004-06-14 16:59 ` Kristen Carlson
2004-06-14 17:11 ` maks attems
6 siblings, 0 replies; 8+ messages in thread
From: maximilian attems @ 2004-06-14 16:47 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 853 bytes --]
On Mon, 14 Jun 2004, Randy.Dunlap wrote:
> On Mon, 14 Jun 2004 09:00:24 -0700 (PDT) Kristen Carlson wrote:
..
> | Having thought about it a little more, I now question why this is on
> | the todo list at all. It doesn't make sense to just replace panic()
> | with machine_restart(). It does make sense to audit the use of panic
> | in device drivers to make sure that panic isn't being used as a lazy
> | way of not dealing with error conditions, but even then I wouldn't
> | think you would want to call machine_restart(). In fact, it seems to
> | me that unless you are the watchdog driver, you don't want to be shutting
> | the machine down.
> |
> | --
> | WWXD (What Would Xena Do?)
>
> I agree with Kristen. Xena would remove it from the TODO list.
done. thanks to Xena's double check,
you may want to pick another item? :)
a++ maks
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
` (4 preceding siblings ...)
2004-06-14 16:47 ` maximilian attems
@ 2004-06-14 16:59 ` Kristen Carlson
2004-06-14 17:11 ` maks attems
6 siblings, 0 replies; 8+ messages in thread
From: Kristen Carlson @ 2004-06-14 16:59 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
>
> On Mon, 14 Jun 2004, Randy.Dunlap wrote:
>
> > On Mon, 14 Jun 2004 09:00:24 -0700 (PDT) Kristen Carlson wrote:
> ..
> > | Having thought about it a little more, I now question why this is on
> > | the todo list at all. It doesn't make sense to just replace panic()
> > | with machine_restart(). It does make sense to audit the use of panic
> > | in device drivers to make sure that panic isn't being used as a lazy
> > | way of not dealing with error conditions, but even then I wouldn't
> > | think you would want to call machine_restart(). In fact, it seems to
> > | me that unless you are the watchdog driver, you don't want to be shutting
> > | the machine down.
> > |
> > | --
> > | WWXD (What Would Xena Do?)
> >
> > I agree with Kristen. Xena would remove it from the TODO list.
>
> done. thanks to Xena's double check,
> you may want to pick another item? :)
>
> a++ maks
>
Great! Who knew it was so easy to fix something :)?
--
WWXD (What Would Xena Do?)
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Kernel-janitors] panic todo?
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
` (5 preceding siblings ...)
2004-06-14 16:59 ` Kristen Carlson
@ 2004-06-14 17:11 ` maks attems
6 siblings, 0 replies; 8+ messages in thread
From: maks attems @ 2004-06-14 17:11 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
On Mon, 14 Jun 2004, Kristen Carlson wrote:
> >
> > On Mon, 14 Jun 2004, Randy.Dunlap wrote:
..
> > > I agree with Kristen. Xena would remove it from the TODO list.
> >
> > done. thanks to Xena's double check,
> > you may want to pick another item? :)
> >
> > a++ maks
> >
>
> Great! Who knew it was so easy to fix something :)?
well that item has some history in it,
if i remember correctly lots of useless panic calls
were audited through the 2.5 serie
-> http://lwn.net/Articles/40620/
a++ maks
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-06-14 17:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-11 19:26 [Kernel-janitors] panic todo? Kristen Carlson
2004-06-13 0:24 ` Randy.Dunlap
2004-06-13 13:39 ` maks attems
2004-06-14 16:00 ` Kristen Carlson
2004-06-14 16:05 ` Randy.Dunlap
2004-06-14 16:47 ` maximilian attems
2004-06-14 16:59 ` Kristen Carlson
2004-06-14 17:11 ` maks attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.