All of lore.kernel.org
 help / color / mirror / Atom feed
From: torn5 <torn5@shiftmail.org>
To: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Will drive flush cache on cable disconnect?
Date: Wed, 05 Jan 2011 17:06:41 +0100	[thread overview]
Message-ID: <4D249711.8040205@shiftmail.org> (raw)

Sorry I am slightly OT

If I disconnect the SATA / SAS cable, or I suddenly power off the 
computer with the controller (this can be done if the drive is on a JBOD 
chassis with separate power) will the HDD/SSD go ahead flushing all 
write-cache content to the platters / flash media? (and so I would get a 
consistent filesystem/database on power on)

Or will it get mad when it returns completion for each write command and 
nobody is listening on the other end of the cable? (cable disconnected 
or controller powered off)

Now another question:
When the drive is doing cached writes (cache on), without NCQ 
(queue_depth at 1), is the "completion" returned immediately upon 
receiving the write command, or is it returned later when the data goes 
to the platters? If it's the latter, what is the difference with NCQ 
(queue_depth > 1) then?

Thank you

                 reply	other threads:[~2011-01-05 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D249711.8040205@shiftmail.org \
    --to=torn5@shiftmail.org \
    --cc=linux-scsi@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 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.