[stgt] Retry of failed I/O

ronnie sahlberg ronniesahlberg at gmail.com
Tue Nov 6 15:17:20 CET 2012


I dont think any retry is done by tgtd.
The error is returned back to the initiator and then the initiator
will retry or do something else to try to recover.


On Mon, Nov 5, 2012 at 10:17 PM, Suresh Rajagopalan <r.raja05 at gmail.com> wrote:
> I'd like to find out what SCSI codes in Tgtd notify the block layer to
> retry a failed
> I/O.
>
> For example, in the current tgtd backing store code (bs_rdwr.c), a
> failed read or writes
> sets the following:
> static void set_medium_error(int *result, uint8_t *key, uint16_t *asc
> {
>         *result = SAM_STAT_CHECK_CONDITION;
>         *key = MEDIUM_ERROR;
>         *asc = ASC_READ_ERROR;
> }
>
>
> While this retries failed reads, failed writes are not retried.   Is there a
> particular code that will notify the client block layer to retry the
> I/O operation?
>
> Thanks
> Suresh
> --
> To unsubscribe from this list: send the line "unsubscribe stgt" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list