[block] Add a small delay between attempts to reopen SAN targets
authorMichael Brown <mcb30@ipxe.org>
Mon, 27 Mar 2017 12:32:29 +0000 (15:32 +0300)
committerMichael Brown <mcb30@ipxe.org>
Mon, 27 Mar 2017 12:41:22 +0000 (15:41 +0300)
commit164378fee60d02c0287bbaa9d390510fc9eab1fd
treead84ba9c51aeca44cadd22c5953330e79a97a7ba
parent6b385c9da388e63a741bb1bb4ee59419c0a141c5
[block] Add a small delay between attempts to reopen SAN targets

When all SAN targets are completely unreachable, there will be a
natural delay between reopening attempts due to the network connection
timeout on the unreachable targets.

However, some SAN targets may accept connections instantly and report
a temporary unavailability by e.g. failing the TEST UNIT READY
command.  If all targets are behaving this way then there will be no
natural delay, and we will attempt to saturate the network with
connection attempts.

Fix by introducing a small delay between attempts.

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