summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorStephen M. Cameron <StephenM.Cameron>2011-01-19 08:25:02 -0700
committerJens Axboe <jaxboe@fusionio.com>2011-01-19 08:25:02 -0700
commit68264e9d6781f7163e92c517769bb470fa43f6cd (patch)
treef113b7d731b8a9b18da23eb792e3c81ca8b2dce5 /drivers/block
parenta0700bdd0b0150ea445159b1dee587f1507c272f (diff)
downloadop-kernel-dev-68264e9d6781f7163e92c517769bb470fa43f6cd.zip
op-kernel-dev-68264e9d6781f7163e92c517769bb470fa43f6cd.tar.gz
cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily.
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/cciss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 516d5bb..9279272 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -2833,7 +2833,7 @@ static int cciss_revalidate(struct gendisk *disk)
sector_t total_size;
InquiryData_struct *inq_buff = NULL;
- for (logvol = 0; logvol < CISS_MAX_LUN; logvol++) {
+ for (logvol = 0; logvol <= h->highest_lun; logvol++) {
if (!h->drv[logvol])
continue;
if (memcmp(h->drv[logvol]->LunID, drv->LunID,
OpenPOWER on IntegriCloud