public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Tino Keitel <tino.keitel@tikei.de>
Cc: Alan Stern <stern@rowland.harvard.edu>,
	linux1394-user@lists.sourceforge.net, linux-scsi@vger.kernel.org,
	Tejun Heo <tj@kernel.org>
Subject: Re: disk restart failure after suspend
Date: Mon, 19 Oct 2009 23:50:29 +0200	[thread overview]
Message-ID: <4ADCDF25.8090908@s5r6.in-berlin.de> (raw)
In-Reply-To: <20091019202828.GA26338@mac.home>

Tino Keitel wrote:
> On Mon, Oct 19, 2009 at 22:24:43 +0200, Stefan Richter wrote:
> 
> [...]
> 
>>> No.  All it does is cause an error message to be printed in the system 
>>> log.  But it's possible that a failure lower down in the SCSI stack has 
>>> this effect.
>> I wonder what this might be.
> 
> I my case, XFS threw a lot of errors because of an incaccessible device
> and set the filesystem offline.

Perhaps this happens:

  - START STOP UNIT does not get through to the disk since
    firewire-sbp2 could not reconnect early enough.
  - The kernel _does not_ actually care, unlike I thought.
    It logs a device resume failure like Alan mentioned, then
    goes about its business.
  - Linux attempts to use the filesystem and issues read/ write/
    whatever requests.
  - Spindle motor is still off, disk returns errors.

At this moment, the target should fail these requests with a specific
sense code which tells the SCSI core that another START STOP UNIT is
required now.  However, it is just as likely that the target firmware
sends something nonsensical or nothing at all.  Or maybe the SCSI core
does even proceed to request START STOP UNIT but the firmware already
went belly-up.  Finally, SCSI core gives up and takes the disk offline.
-- 
Stefan Richter
-=====-==--= =-=- =--==
http://arcgraph.de/sr/

      reply	other threads:[~2009-10-19 21:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091006073926.GA5636@mac.home>
     [not found] ` <4ACB2B69.20008@s5r6.in-berlin.de>
     [not found]   ` <20091006115121.GA15517@mac.home>
     [not found]     ` <4ACB6940.5010905@s5r6.in-berlin.de>
     [not found]       ` <4ACB6BF2.5090409@s5r6.in-berlin.de>
     [not found]         ` <20091007051614.GA7527@mac.home>
     [not found]           ` <4ACC2ADC.4050307@s5r6.in-berlin.de>
     [not found]             ` <20091011202902.GA29604@x61.home>
     [not found]               ` <4AD25437.90609@s5r6.in-berlin.de>
     [not found]                 ` <20091016060320.GB30389@mac.home>
2009-10-18 14:42                   ` disk restart failure after suspend Stefan Richter
2009-10-19 13:42                     ` Alan Stern
2009-10-19 18:05                       ` Tino Keitel
2009-10-19 20:24                       ` Stefan Richter
2009-10-19 20:28                         ` Tino Keitel
2009-10-19 21:50                           ` Stefan Richter [this message]

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=4ADCDF25.8090908@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux1394-user@lists.sourceforge.net \
    --cc=stern@rowland.harvard.edu \
    --cc=tino.keitel@tikei.de \
    --cc=tj@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox