[stgt] Retry of failed I/O

Suresh Rajagopalan r.raja05 at gmail.com
Tue Nov 6 07:17:24 CET 2012

I'd like to find out what SCSI codes in Tgtd notify the block layer to
retry a failed

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?

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