public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mptsas: scan the logical volume at first
@ 2007-08-27 17:58 Yinghai Lu
  2007-08-27 22:20 ` Moore, Eric
  0 siblings, 1 reply; 4+ messages in thread
From: Yinghai Lu @ 2007-08-27 17:58 UTC (permalink / raw)
  To: Andrew Morton, Sathya Prakash, James Bottomley, Eric.Moore
  Cc: Linux Kernel Mailing List, mpt_linux_developer, linux-scsi

[PATCH] mptsas: scan the logical volume at first

user like to see the raid show as /dev/sda before left raw disks.
So scan the volume at first to make their life easier.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index b9c69bf..4c452be 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -2403,9 +2403,6 @@ mptsas_scan_sas_topology(MPT_ADAPTER *ioc)
 	int i;
 
 	mutex_lock(&ioc->sas_discovery_mutex);
-	mptsas_probe_hba_phys(ioc);
-	while (!mptsas_probe_expander_phys(ioc, &handle))
-		;
 	/*
 	  Reporting RAID volumes.
 	*/
@@ -2420,6 +2417,9 @@ mptsas_scan_sas_topology(MPT_ADAPTER *ioc)
 		    ioc->raid_data.pIocPg2->RaidVolume[i].VolumeID, 0);
 	}
  out:
+	mptsas_probe_hba_phys(ioc);
+	while (!mptsas_probe_expander_phys(ioc, &handle))
+		;
 	mutex_unlock(&ioc->sas_discovery_mutex);
 }
 

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

end of thread, other threads:[~2007-08-27 22:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-27 17:58 [PATCH] mptsas: scan the logical volume at first Yinghai Lu
2007-08-27 22:20 ` Moore, Eric
2007-08-27 22:51   ` Yinghai Lu
2007-08-27 22:50     ` Moore, Eric

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