Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2011 17:58:22 -0700
From:      Matthew Jacob <mj@feral.com>
To:        freebsd-scsi@freebsd.org
Subject:   Re: No retries after periph invalidation?
Message-ID:  <4E2B6E2E.7050507@feral.com>
In-Reply-To: <4E2B4674.8070605@FreeBSD.org>
References:  <4E2B4674.8070605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/23/2011 3:08 PM, Alexander Motin wrote:
> Hi.
>
> I've simulated one real world device failure condition, when SATA disk
> still reports its presence, but doesn't respond to any command. I've
> found that due to multiple command retries, each of which cause 30s
> timeout, bus reset and another retry/requeue, it may take ages to
> eventually drop the failed device. Odd thing that those retries continue
> even after XPT considered device lost and invalidated it.
>
> I've made a patch (http://people.freebsd.org/~mav/periph_noretry.patch)
> for cam_periph_error() to block any retries after periph was marked as
> invalid. With that patch all activity completes in 1-2 minutess, just
> after several timeouts, required to consider device loss.
>
> Can this way considered to be correct?
>

Yes, I like this.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E2B6E2E.7050507>