On Thu, 2014-06-05 at 09:26 +0200, Hannes Reinecke wrote: > REPORT_LUN_SCAN does not report any outstanding unit attention > condition as per SAM. However, the target might not be fully > initialized at that time, so we might end up getting a > default entry (or even a partially filled one). > But as we're not able to process the REPORT LUN DATA HAS CHANGED > unit attention correctly we'll be missing out some LUNs during > startup. > So it's better to send a TEST UNIT READY for modern implementations > and wait until the unit attention condition goes away. Are you sure this is a good idea: we just spent ages tuning SCSI init so we don't slow systems down. This patch, in the event the array is having a power on problem, takes us right back to waiting for init again ... basically the busy wait in scsi_test_lun. Since the array should send us a UA anyway when it's got itself sorted out, what's wrong with just processing the report luns data has changed condition? James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html