[block] Retry any SAN device operation
authorMichael Brown <mcb30@ipxe.org>
Tue, 7 Mar 2017 16:11:22 +0000 (16:11 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 7 Mar 2017 16:11:22 +0000 (16:11 +0000)
commitd9886f1961f9970b4354442e84b98727b69cd73a
treef3327344ff70be0e1dde0b079cd2d7b455389546
parent23d388418e8066fc5d609d57c4a0032a982a2dbc
[block] Retry any SAN device operation

The SCSI layer currently implements a retry loop in order to retry
commands that fail due to spurious "error" conditions such as "power
on occurred".  Move this retry loop to the generic SAN device layer:
this allow for retries due to other transient error conditions such as
an iSCSI target having dropped the connection due to inactivity.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/sanboot.c
src/drivers/block/scsi.c