The TEST UNIT READY command is issued automatically when the device is opened, and is not the result of a command being issued by the caller. This is required in order that a permanent TEST UNIT READY failure can be used to identify unusable paths in a multipath SAN device. Since the TEST UNIT READY command is not part of the caller's command issuing process, it is not covered by any external retry loops (such as the main retry loop in sandev_command()). We must therefore be prepared to retry the TEST UNIT READY command within the SCSI layer itself. We retry only the TEST UNIT READY command so as not to multiply the number of potential retries for normal commands (which are already retried by sandev_command()). Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
42 |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
43 |
|
46 |
|
44 |
|
47 |
|
45 |
|
48 |
|
|
|
||
240 |
|
243 |
|
241 |
|
244 |
|
242 |
|
245 |
|
|
246 |
|
|
|
247 |
|
|
243 |
|
248 |
|
244 |
|
249 |
|
245 |
|
250 |
|
|
|
||
875 |
|
880 |
|
876 |
|
881 |
|
877 |
|
882 |
|
878 |
|
|
|
|
883 |
|
|
879 |
|
884 |
|
880 |
|
|
|
881 |
|
|
|
882 |
|
|
|
883 |
|
|
|
884 |
|
|
|
|
885 |
|
|
|
886 |
|
|
|
887 |
|
|
|
888 |
|
|
|
889 |
|
|
|
890 |
|
|
|
891 |
|
|
|
892 |
|
|
|
893 |
|
|
|
894 |
|
|
|
895 |
|
|
|
896 |
|
|
|
897 |
|
|
|
898 |
|
|
|
899 |
|
|
|
900 |
|
|
|
901 |
|
|
|
902 |
|
|
|
903 |
|
|
|
904 |
|
|
|
905 |
|
|
|
906 |
|
|
|
907 |
|
|
|
908 |
|
|
|
909 |
|
|
885 |
|
910 |
|
886 |
|
911 |
|
887 |
|
912 |
|
888 |
|
|
|
889 |
|
|
|
890 |
|
|
|
891 |
|
|
|
|
913 |
|
|
|
914 |
|
|
|
915 |
|
|
|
916 |
|
|
892 |
|
917 |
|
893 |
|
918 |
|
894 |
|
919 |
|