From: James Bottomley <James.Bottomley@steeleye.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 4/4] 2.4 SCSI error handling fixes
Date: Mon, 23 Sep 2002 11:54:27 -0400 [thread overview]
Message-ID: <200209231554.g8NFsRA02460@localhost.localdomain> (raw)
In-Reply-To: Message from Russell King <rmk@arm.linux.org.uk> of "Thu, 12 Sep 2002 19:18:24 BST." <20020912191824.D4739@flint.arm.linux.org.uk>
rmk@arm.linux.org.uk said:
> *** NOTE *** This needs a better solution. Setting the FUA bit
> bypasses the drives cache altogether. You should read the message at
> the URL above *before* commenting for a detailed explaination of the
> problem, and why I've had to make this change.
I read the message. I think your drive is out of spec in its behaviour.
Patches 1-3 look fine. Patch 4 would kill our performance on huge cache RAID
arrays (guess what most benchmarks are done on).
I think the correct (but much more invasive) fix for this is to return all
MEDIUM errors immediately to the upper level driver (sd or sr) and let them do
error recovery (i.e. determine whether retry should be done). Once the upper
level drivers do the retry, you can reliably add the FUA bit to the command
for the retry. Thus we'd only use FUA in the retry case and normal caching
performance shouldn't be impacted.
Do you want to try doing it this way?
James
next prev parent reply other threads:[~2002-09-23 16:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-12 18:18 [PATCH 4/4] 2.4 SCSI error handling fixes Russell King
2002-09-23 15:54 ` James Bottomley [this message]
2002-09-23 18:57 ` Russell King
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=200209231554.g8NFsRA02460@localhost.localdomain \
--to=james.bottomley@steeleye.com \
--cc=linux-scsi@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/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