From: Jens Axboe <axboe@suse.de>
To: "Edwards, Scott (GE Healthcare)" <J.Scott.Edwards@ge.com>,
linux-scsi@vger.kernel.org
Subject: Re: Write cache on SATA drives?
Date: Fri, 1 Jul 2005 10:54:13 +0200 [thread overview]
Message-ID: <20050701085412.GA2243@suse.de> (raw)
In-Reply-To: <20050701084717.GA18306@merlin.emma.line.org>
On Fri, Jul 01 2005, Matthias Andree wrote:
> Jens Axboe schrieb am 2005-07-01:
>
> > On Fri, Jul 01 2005, Matthias Andree wrote:
> > > Jens Axboe <axboe@suse.de> writes:
> > >
> > > > On Thu, Jun 30 2005, Edwards, Scott (GE Healthcare) wrote:
> > > >> Hello,
> > > >>
> > > >> Can anyone tell me if the write cache on SATA drives are handled such
> > > >> that journaling file systems work correctly? Back in the 2.6.5 -
> > > >> 2.6.7 time frame I had to disable the write cache to get ext3 to not
> > > >> trash things when the power was lost. With kernel 2.6.10 would I
> > > >> still need to disable the write cache?
> > > >
> > > > With 2.6.12.x it should work, if you use ext3 or reiser and the
> > > > appropriate mount options (-o barrier=1 for ext3, barrier=flush for
> > > > reiserfs). 2.6.11 and earlier does not work on SATA.
> > >
> > > I presume this means "libata" exclusively, no?
> >
> > It means "SCSI without queueing" which I'm assuming is basically only
> > libata at this moment, at least if you count setups that have a non-zero
> > userbase :)
> >
> > > Which is the oldest version where this works
> > >
> > > 1. for SCSI (perhaps by adaptor)?
> >
> > 2.6.12, with the above restriction. I hope to lift that for .13/14, with
> > Tejuns barrier updates.
>
> The "SCSI without queueing" isn't clear to me. What system exactly is
> meant "without queueing"?
>
> Does this mean SCSI with TCQ is safe?
>
> Does this means SCSI is safe only when TCQ isn't used?
>
> Does this apply to internals of the SCSI host adaptor driver?
>
> I'm not acquainted with kernel/block I/O queueing internals.
SCSI without TCQ or with TCQ depth=1 should be safe, provided the driver
never reorders a command once it has received it.
> > > 2. for traditional IDE (such as VIA 82*, PIIX_*)?
> >
> > In SUSE kernels, for many years. Since 2.6.7/8'ish in Linus' kernels.
>
> I don't care for vendor kernels. Is listing 2.6.8 safe?
Check the changelogs, I can't remember exactly if it was 2.6.7 or 2.6.8
(or perhaps .6...).
--
Jens Axboe
next prev parent reply other threads:[~2005-07-01 8:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-30 21:39 Write cache on SATA drives? Edwards, Scott (GE Healthcare)
2005-07-01 6:24 ` Jens Axboe
2005-07-01 8:17 ` Matthias Andree
2005-07-01 8:33 ` Jens Axboe
2005-07-01 8:47 ` Matthias Andree
2005-07-01 8:54 ` Jens Axboe [this message]
2005-07-01 23:33 ` Matthias Andree
2005-07-02 7:07 ` Jens Axboe
2005-07-03 17:03 ` Matthias Andree
2005-07-04 6:39 ` Jens Axboe
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=20050701085412.GA2243@suse.de \
--to=axboe@suse.de \
--cc=J.Scott.Edwards@ge.com \
--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.