diff options
author | Stephen M. Cameron <StephenM.Cameron> | 2011-01-19 08:25:02 -0700 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-01-19 08:25:02 -0700 |
commit | 68264e9d6781f7163e92c517769bb470fa43f6cd (patch) | |
tree | f113b7d731b8a9b18da23eb792e3c81ca8b2dce5 /drivers/block | |
parent | a0700bdd0b0150ea445159b1dee587f1507c272f (diff) | |
download | blackbird-op-linux-68264e9d6781f7163e92c517769bb470fa43f6cd.tar.gz blackbird-op-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')
-rw-r--r-- | drivers/block/cciss.c | 2 |
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, |