From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Vladislav Bolkhovitin <vst@vlnb.net>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
Andrew Morton <akpm@linux-foundation.org>,
linux-scsi@vger.kernel.org, bugme-daemon@bugzilla.kernel.org,
bart.vanassche@gmail.com
Subject: Re: [Bugme-new] [Bug 9405] New: iSCSI does not implement ordering guarantees required by e.g. journaling filesystems
Date: Tue, 20 Nov 2007 10:43:59 -0600 [thread overview]
Message-ID: <1195577040.3131.48.camel@localhost.localdomain> (raw)
In-Reply-To: <4743082D.7030302@vlnb.net>
On Tue, 2007-11-20 at 19:15 +0300, Vladislav Bolkhovitin wrote:
> James Bottomley wrote:
> > I'm not sure your conclusions necessarily follow your data. What was
> > the reason for the TASK ABORTED (I'd guess QErr settings, right)?
>
> It was my desire/curiosity during tests of SCST (http://scst.sf.net),
> when it working with several initiators with different transports over
> the same set of devices, each of them having with TAS bit in the control
> mode page set. According to SAM, in this case TASK ABORTED status can be
> returned at any time, similarly to QUEUE FULL, i.e. IMHO such command
> just should be retried. But QUEUE FULL status handled well, but TASK
> ABORTED leads to filesystem corruption.
So this is with a soft target implementation ... so it could be an
ordering issue inside the target that's causing the filesystem
corruption on error.
if you specifically set TAS=1 you're giving up the right to know what
caused the command termination. With insufficient information, it's
really unsafe to simply retry, which is why the mid layer just returns
TASK ABORTED as an error. If you set TAS=0 we'll get a check
condition/unit attention explaining what happened (usually commands
cleared by another initiator) and we'll explicitly do the right thing
based on the sense data.
One of my test suites has an initiator which randomly spits errors.
I've yet to see it cause an error that an ext3 journal can't recover
from. So, if there's a genuine problem we need a nice test case to pass
to the filesystem people.
James
next prev parent reply other threads:[~2007-11-20 16:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-9405-10286@http.bugzilla.kernel.org/>
2007-11-19 20:50 ` [Bugme-new] [Bug 9405] New: iSCSI does not implement ordering guarantees required by e.g. journaling filesystems Andrew Morton
2007-11-19 20:56 ` James Bottomley
2007-11-19 21:22 ` Mike Christie
2007-11-19 21:28 ` James Bottomley
2007-11-20 15:04 ` Vladislav Bolkhovitin
2007-11-20 15:28 ` James Bottomley
2007-11-20 16:15 ` Vladislav Bolkhovitin
2007-11-20 16:43 ` James Bottomley [this message]
2007-11-20 17:17 ` Vladislav Bolkhovitin
2007-11-20 17:30 ` James Bottomley
2007-11-20 17:45 ` Vladislav Bolkhovitin
2007-11-20 17:52 ` Matthew Wilcox
2007-11-20 17:57 ` James Bottomley
2007-11-20 18:22 ` Vladislav Bolkhovitin
2007-11-21 12:31 ` Vladislav Bolkhovitin
2007-11-19 21:15 ` Mike Christie
2007-11-19 21:18 ` Matthew Wilcox
2007-11-19 21:24 ` Mike Christie
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=1195577040.3131.48.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=akpm@linux-foundation.org \
--cc=bart.vanassche@gmail.com \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=vst@vlnb.net \
/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.