From: Stephen M. Cameron Date: Wed, 19 Jan 2011 15:25:02 +0000 (-0700) Subject: cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68264e9d6781f7163e92c517769bb470fa43f6cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily. Signed-off-by: Stephen M. Cameron Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- 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,