summaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.c
diff options
context:
space:
mode:
authorStephen M. Cameron <StephenM.Cameron>2011-01-19 16:25:02 +0100
committerJens Axboe <jaxboe@fusionio.com>2011-01-19 16:25:02 +0100
commit68264e9d6781f7163e92c517769bb470fa43f6cd (patch)
treef113b7d731b8a9b18da23eb792e3c81ca8b2dce5 /drivers/block/cciss.c
parentdrivers/block/aoe/Makefile: replace the use of <module>-objs with <module>-y (diff)
downloadlinux-68264e9d6781f7163e92c517769bb470fa43f6cd.tar.xz
linux-68264e9d6781f7163e92c517769bb470fa43f6cd.zip
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/cciss.c')
-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 516d5bbec2b6..9279272b3732 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,