From: Yinghai Lu <Yinghai.Lu@Sun.COM>
To: Andrew Morton <akpm@linux-foundation.org>,
Sathya Prakash <sathya.prakash@lsi.com>,
James Bottomley <James.Bottomley@steeleye.com>,
Eric.Moore@lsi.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
mpt_linux_developer@lsi.com, linux-scsi@vger.kernel.org
Subject: [PATCH] mptsas: scan the logical volume at first
Date: Mon, 27 Aug 2007 10:58:01 -0700 [thread overview]
Message-ID: <200708271058.01919.yinghai.lu@sun.com> (raw)
[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);
}
next reply other threads:[~2007-08-27 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-27 17:58 Yinghai Lu [this message]
2007-08-27 22:20 ` [PATCH] mptsas: scan the logical volume at first Moore, Eric
2007-08-27 22:51 ` Yinghai Lu
2007-08-27 22:50 ` Moore, Eric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200708271058.01919.yinghai.lu@sun.com \
--to=yinghai.lu@sun.com \
--cc=Eric.Moore@lsi.com \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mpt_linux_developer@lsi.com \
--cc=sathya.prakash@lsi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox