All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Don Oliver <doliver@logicube.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: Error Retries in Linux SCSI Layers w/ AIO/DIRECT IO?
Date: Thu, 27 Jan 2011 16:37:20 -0500	[thread overview]
Message-ID: <1296164240.3050.82.camel@mulgrave.site> (raw)
In-Reply-To: <33E83F701EA663469FEBA23868D2595501BE9240@lgsbs.lg.local>

linux-scsi added to cc so all the experts get to chime in.

On Thu, 2011-01-27 at 10:09 -0800, Don Oliver wrote:
> Hi James,
>  
> I am developing a Linux application that uses Asynchronous IO
> (libaio) with DIRECT_IO to read and write to hard drives over a SAS
> HBA.
>  
> Do the SCSI layers in Linux automatically perform retries on failed
> read and write commands, or will my application need to be solely
> responsible for error retries?

By and large, if the sense code of a write says that the error is
permanent and unfixable, there's no point at all in retrying it, so
errors get returned as fast as possible.  SCSI will retry if there's
hope of actually fixing it (like transient medium errors).

James




           reply	other threads:[~2011-01-27 21:37 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <33E83F701EA663469FEBA23868D2595501BE9240@lgsbs.lg.local>]

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=1296164240.3050.82.camel@mulgrave.site \
    --to=james.bottomley@hansenpartnership.com \
    --cc=doliver@logicube.com \
    --cc=linux-scsi@vger.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 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.