linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Chris Murphy <lists@colorremedies.com>,
	Edward Kuns <eddie.kuns@gmail.com>
Cc: Zygo Blaxell <u0oo5pgu@umail.furryterror.org>,
	Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: URE, link resets, user hostile defaults
Date: Mon, 4 Jul 2016 08:00:43 +0200	[thread overview]
Message-ID: <5779FB8B.70708@suse.de> (raw)
In-Reply-To: <CAJCQCtT2Sxi1GgmNaO8i46LuELpA_nrWLnVzAQMz7Qx_mdwXvw@mail.gmail.com>

On 07/01/2016 10:43 PM, Chris Murphy wrote:
> Here's a fun one of these I just got off the Fedora users mailing list
> with a laptop drive that's apparently hanging on *write*. This I would
> not expect to take a long time for a drive to figure out, but... there
> are more resets than there are write errors, and in fact there's no
> discrete write error from the drive, all we know is the failed command
> is a WRITE command.
> 
> What seems to happen is, everything in the queue gets obliterated in
> the reset, and when ext4 finds out everything failed, not just one
> write, it barfs and goes read only.
> 
> http://pastebin.com/3JAL297z
> 
> How might this turn out differently if the drive reported a single
> discrete write error? I don't know how any file system tolerates this
> because it's so rare. Would ext4 just try to write again? Would it try
> to write to the same sector or another one? Or maybe the write finally
> succeeds by resulting in a remap (?) But this sure is dang slow to
> recover from a bad write. I don't understand the engineering rational
> for this. Maybe it's a firmware bug?
> 
> 
Could be. At the very least it's an issue with EH interaction.
ATA COMRESET fails, ie libata EH fails to reset the SATA link.
Which is pretty terminal, so the device is set to offline afterwards.

This is most definitely an ATA issue, and doesn't really belong in this
context.
(Have you reported it on linux-ide?)

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@suse.de			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2016-07-04  6:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-27 16:42 URE, link resets, user hostile defaults Chris Murphy
2016-06-28  6:33 ` Hannes Reinecke
2016-06-28 17:33   ` Chris Murphy
2016-06-28 18:28     ` Phil Turmel
2016-06-28 20:46       ` Wols Lists
2016-06-28 22:17         ` Chris Murphy
2016-06-29  6:01     ` Hannes Reinecke
2016-06-29 10:48       ` Pasi Kärkkäinen
2016-06-29 12:17     ` Zygo Blaxell
2016-06-29 18:16       ` Edward Kuns
2016-07-01 20:43         ` Chris Murphy
2016-07-04  6:00           ` Hannes Reinecke [this message]
2016-07-04 21:43       ` Pasi Kärkkäinen
2016-08-19 10:00         ` Pasi Kärkkäinen
2016-08-19 12:36           ` Phil Turmel
2016-08-19 15:30         ` Chris Murphy

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=5779FB8B.70708@suse.de \
    --to=hare@suse.de \
    --cc=eddie.kuns@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=u0oo5pgu@umail.furryterror.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;
as well as URLs for NNTP newsgroup(s).