public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH 1/1] : Spinning up disk is observed on standby paths until timeout, resulting in longer path restoration time.
@ 2009-02-20 12:03 Rengarajan, Narayanan (STSD)
  2009-02-20 13:53 ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: Rengarajan, Narayanan (STSD) @ 2009-02-20 12:03 UTC (permalink / raw)
  To: linux-scsi@vger.kernel.org


Sorry if sent already

Hi,

  Spinning up disk is observed on standby paths until timeout, resulting in longer path restoration time in 2.6.27 kernel.

 Steps to reproduce:
 1. present a standby lun to the host
 2. do a discovery from the host (scan the scsi bus)  3. Spinning of disks is  observed in  /var/log/messages

Whenever a device goes offline and comes back, the new sd device takes longer time to get created. This is because of the spinning up of disk in sd_spinup_disk fuction as the standby paths would return device not ready with 0x04/0x0b asc/ascq.

Recommended patch :

  diff -pNaur /usr/src/linux/drivers/scsi/sd.c sd.c
--- /usr/src/linux/drivers/scsi/sd.c    2009-02-09 22:24:56.000000000 +0530
+++ sd.c        2009-02-19 16:39:16.000000000 +0530
@@ -1181,8 +1181,8 @@ sd_spinup_disk(struct scsi_disk *sdkp)
                 */
                if (sense_valid &&
                    sshdr.sense_key == NOT_READY &&
-                   sshdr.asc == 4 && sshdr.ascq == 3) {
-                       break;          /* manual intervention required */
+                   sshdr.asc == 4 && (sshdr.ascq == 3 || sshdr.ascq == 
+ 0x0b ||
sshdr.ascq == 0x0c) ) {
+                       break;  /* manual intervention required || 
+ Standby ||
Unavailable */

 signed off : narayanan.rengarajan@hp.com

Narayanan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-26 13:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-20 12:03 PATCH 1/1] : Spinning up disk is observed on standby paths until timeout, resulting in longer path restoration time Rengarajan, Narayanan (STSD)
2009-02-20 13:53 ` Matthew Wilcox
2009-02-26 13:43   ` Rengarajan, Narayanan (STSD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox