On Nov 6, 2012, at 8:49 AM, Suresh Rajagopalan <[email protected]> wrote:
> I'd like to find out what SAM codes in Tgtd notify open-iscsi & block
> layer to
> retry a failed
> I/O.
>
> To clarify, 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 open-iscsi / client block layer
> to retry the
> I/O operation?
open-iscsi passes this to the scsi layer. See
driver/scsi/scsi_error.c:scsi_decide_disposition(), sd.c:sd_done() and
scsi_lib.c:scsi_io_completion() for your kernel.
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.