]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] sd: Don't try to spin up drives that are connected to an inactive port
authorMatthew Wilcox <matthew@wil.cx>
Fri, 20 Feb 2009 13:53:48 +0000 (06:53 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 5 Mar 2009 16:34:37 +0000 (10:34 -0600)
commite26ffc549adc508c7ac15ae23d0b29d2604d2bc7
tree8390e0a43bac01b4e393d9ec35b8a58823e98da4
parent2f09fb9728a7be1cde099e55f6766b187588ae4a
[SCSI] sd: Don't try to spin up drives that are connected to an inactive port

We currently try to spin up drives connected to standby and unavailable
ports.  This will never succeed and wastes a lot of time.  Fail quickly
if the sense data reports the port is in standby or unavailable state.

Reported-by: Narayanan Rengarajan <narayanan.rengarajan@hp.com>
Tested-by: Narayanan Rengarajan <narayanan.rengarajan@hp.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/sd.c