From: James Bottomley <James.Bottomley@SteelEye.com>
To: Chris Mason <mason@suse.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
Jens Axboe <axboe@suse.de>,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] queue barrier support
Date: Fri, 15 Feb 2002 11:51:45 -0500 [thread overview]
Message-ID: <200202151651.g1FGpjs02083@localhost.localdomain> (raw)
In-Reply-To: Message from Chris Mason <mason@suse.com> of "Fri, 15 Feb 2002 11:28:35 EST." <3998280000.1013790514@tiny>
mason@suse.com said:
> While I've got linux-scsi cc'd, I'll reask a question from yesterday.
> Do the targets with write back caches usually ignore the order tag,
> doing the write in the most efficient way possible instead?
I'll try to answer, although I'm not quite sure of the basis of the question.
No ordinary SCSI drive that's not on a battery backed circuit should *ever*
use writeback caching. They should all come by default as write through. In
this case, the tag is acknowleged as completed only when the write has made it
to the medium.
If you alter the drive parameter page to turn on write back caching, it's
caveat emptor. Since you're now telling the drive that you consider hitting
the cache to be equivalent to hitting the medium (because you know better
about power failures and the like) it is undefined by the standards how the
drives write from the cache to the medium---and you shouldn't care about this
if you have arranged your system to do write back caching. They will
acknowlege the tag as completed as soon as it hits the cache, and the ordered
tag will be order it commits to the cache.
Note, for high end disk arrays, the reverse is usually true since they often
have internal battery backups for their caches and drives.
If you lose power to the drive that does write back caching before the cache
flushes, all the indications you've given the journalling fs about write
commits are voided and the fs is probably inconsistent and not recoverable by
a journal replay.
Note also that on system shutdown, most devices that use write back caching
are also expecting a cache flush instruction from the node, which Linux
doesn't send.
James
next prev parent reply other threads:[~2002-02-15 16:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 18:26 James Bottomley
2002-02-15 9:02 ` Jens Axboe
2002-02-15 15:15 ` James Bottomley
2002-02-15 16:28 ` Chris Mason
2002-02-15 16:51 ` James Bottomley [this message]
2002-02-15 17:17 ` Chris Mason
2002-02-15 17:48 ` James Bottomley
2002-02-15 22:30 ` Matthias Andree
2002-02-15 17:09 ` James Bottomley
2002-02-15 16:43 ` Mike Anderson
2002-02-15 13:41 ` Chris Mason
2002-02-16 10:20 ` Daniel Phillips
2002-02-16 15:02 ` James Bottomley
2002-02-25 20:55 ` 929-Emulex, ABTS Command Anamoly! Cindy Sweet
2002-02-25 21:02 ` arjan
-- strict thread matches above, loose matches on Subject: below --
2002-02-13 12:51 [PATCH] queue barrier support Jens Axboe
2002-02-13 13:09 ` Martin Dalecki
2002-02-13 13:13 ` Jens Axboe
2002-02-13 14:36 ` Martin Dalecki
2002-02-13 14:41 ` Jens Axboe
2002-02-13 14:51 ` Daniel Phillips
2002-02-13 15:18 ` Jens Axboe
2002-02-13 17:47 ` Andreas Dilger
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=200202151651.g1FGpjs02083@localhost.localdomain \
--to=james.bottomley@steeleye.com \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mason@suse.com \
/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
all inboxes | Powered by JetHome®