]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptsas: add TUR with retries to ensure LUNs complete initialization
authorDan Duval <dan.duval@oracle.com>
Fri, 2 Sep 2016 16:56:30 +0000 (12:56 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 27 Sep 2016 23:47:18 +0000 (16:47 -0700)
commit5e8a36a541a033c80d11f8f062c03c340e242acd
tree340de669e4322482661cbbab0cf6b112ec2fac12
parenta9b1ee8cfae7126048effc0df4d5e58d490a3fd1
mptsas: add TUR with retries to ensure LUNs complete initialization

Orabug: 24745062

Earlier versions of the mptsas driver included a mechanism for
executing, and if necessary retrying, SCSI TEST UNIT READY commands
to ensure that devices complete their initialization during device
discovery.  This functionality, present in UEK2, was never sent
upstream, and was lost when UEK4 was initiated.

We have been seeing flash devices returning errors, or simply
disappearing, during alter cell validate configuration operations
on Exadata systems.  Giving the flash disks time to initialize
after (re-) discovery appears to resolve this issue.

This commit simply restores the missing functionality.

Signed-off-by: Dan Duval <dan.duval@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptsas.c
drivers/message/fusion/mptsas.h
drivers/message/fusion/mptscsih.c
drivers/message/fusion/mptscsih.h