Retry of failed I/O

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux