public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nigel Cunningham <ncunningham@users.sourceforge.net>
To: "James H. Cloos Jr." <cloos@jhcloos.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: PATCH: Shutdown IDE before powering off.
Date: Fri, 23 Jan 2004 08:36:40 +1300	[thread overview]
Message-ID: <1074800199.12771.110.camel@laptop-linux> (raw)
In-Reply-To: <m3y8rzlrj5.fsf@lugabout.jhcloos.org>

[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]

Well, as far as Suspend can see, all the data has been written. By the
time we reach this point, the end_buffer_io_async routine has been
called for every write submitted, and the last write submitted by
anything else was at least a few seconds ago (all other processes are
frozen and drivers suspended), so all data _should_ be on disk already
and sync should do nothing. Actually, we wouldn't want to call sync
anyway for reasons I won't go into here (unnecessary complication). I'm
sure you'd agree that we would want to delay for an arbitrary length of
time either (no guarantees that that would cut the mustard). We need to
flush caches properly.

Regards,

Nigel

On Fri, 2004-01-23 at 08:19, James H. Cloos Jr. wrote:
> John> I think it is an attempt to force some broken drives to flush
> John> their cache, but I wonder whether it will simply move the
> John> problem from one set of broken drives to another :-).
> 
> It will.  I've had to work with a few drives or drive combos over
> the years that would not spin up reliably.  It was vital to keep
> them spinning once they were (all) up.  Adding this would make
> reboot unnecessarily unuseable in such cases.  Perhaps just
> flush, pause, flush would work as well?
> 
> Or even the logical equivilent to sync;sync;sync;reboot?
> 
> -JimC
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
-- 
My work on Software Suspend is graciously brought to you by
LinuxFund.org.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-01-22 19:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22  1:42 PATCH: Shutdown IDE before powering off Nigel Cunningham
2004-01-22  7:49 ` Andrew Morton
2004-01-22  8:13   ` John Bradford
2004-01-22  8:26     ` Nigel Cunningham
2004-01-22  8:45       ` Andrew Morton
2004-01-22  9:10         ` Nigel Cunningham
2004-01-22 16:02         ` Jeff Garzik
2004-01-22 17:13           ` Bartlomiej Zolnierkiewicz
2004-01-22 10:08       ` John Bradford
2004-01-22 19:19     ` James H. Cloos Jr.
2004-01-22 19:36       ` Nigel Cunningham [this message]
2004-01-22 19:52         ` James H. Cloos Jr.
2004-01-22 21:07       ` Jeff Garzik
     [not found] <1gC8S-6UB-5@gated-at.bofh.it>
     [not found] ` <1gIHq-3JU-23@gated-at.bofh.it>
     [not found]   ` <1gPzb-1OM-17@gated-at.bofh.it>
     [not found]     ` <1gQET-2Qn-9@gated-at.bofh.it>
2004-03-11 21:46       ` Karol Kozimor

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=1074800199.12771.110.camel@laptop-linux \
    --to=ncunningham@users.sourceforge.net \
    --cc=cloos@jhcloos.com \
    --cc=linux-kernel@vger.kernel.org \
    /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