* Re: Patch: linux-2.5.42/kernel/sys.c - warm reboot should not suspend device
@ 2002-10-13 20:44 Adam J. Richter
2002-10-13 21:56 ` Eric W. Biederman
0 siblings, 1 reply; 2+ messages in thread
From: Adam J. Richter @ 2002-10-13 20:44 UTC (permalink / raw)
To: eblade; +Cc: linux-kernel
Eric Blade wrote:
>On Sun, 2002-10-13 at 15:24, Adam J. Richter wrote:
>> [...] I think the new behavior in IDE
>> of spinning down the hard drives on suspend is correct. The problem
>> is that the warm reboot system call is trying to suspend all of the
>> devices before a warm reboot for no reason. [...]
>Adam,
> I'm not sure the proper thing to do is necessarily remove the
>device_shutdown() call.
If, by this, you are saying that you have in mind some reason
why this should not be done, then please explain.
> Please try this patch [...]
Your patch does not apply and I don't see how renaming
a constant in essentially every place that it is referenced would
change the behavior of the code in a way releveant to the problem
that I described.
I don't see a problem with device_shutdown spinning down the
IDE hard disks. What I have a problem with, and what my patch fixes,
is the relatively new behavior of the warm reboot system call calling
device_shutdown. Why was this added? The reboot notifier chain is
already called for devices that need some preparation before it is
safe to reboot or halt.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Patch: linux-2.5.42/kernel/sys.c - warm reboot should not suspend device
2002-10-13 20:44 Patch: linux-2.5.42/kernel/sys.c - warm reboot should not suspend device Adam J. Richter
@ 2002-10-13 21:56 ` Eric W. Biederman
0 siblings, 0 replies; 2+ messages in thread
From: Eric W. Biederman @ 2002-10-13 21:56 UTC (permalink / raw)
To: Adam J. Richter; +Cc: eblade, linux-kernel
"Adam J. Richter" <adam@yggdrasil.com> writes:
> Eric Blade wrote:
> >On Sun, 2002-10-13 at 15:24, Adam J. Richter wrote:
> >> [...] I think the new behavior in IDE
> >> of spinning down the hard drives on suspend is correct. The problem
> >> is that the warm reboot system call is trying to suspend all of the
> >> devices before a warm reboot for no reason. [...]
>
> >Adam,
> > I'm not sure the proper thing to do is necessarily remove the
> >device_shutdown() call.
>
> If, by this, you are saying that you have in mind some reason
> why this should not be done, then please explain.
We need it. It doesn't make sense for every device driver
to register a reboot notifier. When especially as they
have to run the same code when they are modular and are
removed.
Why would you not want to do that?
> > Please try this patch [...]
>
> Your patch does not apply and I don't see how renaming
> a constant in essentially every place that it is referenced would
> change the behavior of the code in a way releveant to the problem
> that I described.
>
> I don't see a problem with device_shutdown spinning down the
> IDE hard disks. What I have a problem with, and what my patch fixes,
> is the relatively new behavior of the warm reboot system call calling
> device_shutdown. Why was this added?
Because most device drivers don't implement a reboot notifier?
And they almost certainly need it.
> The reboot notifier chain is
> already called for devices that need some preparation before it is
> safe to reboot or halt.
Error please try again. It is just they don't cause major problems
on reboot so no one notices the problems.
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-13 21:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-13 20:44 Patch: linux-2.5.42/kernel/sys.c - warm reboot should not suspend device Adam J. Richter
2002-10-13 21:56 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox