Messages in this thread Patch in this message | | | Subject | [PATCH] cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily. | From | "Stephen M. Cameron" <> | Date | Thu, 06 Jan 2011 10:39:14 -0600 |
| |
From: Stephen M. Cameron <StephenM.Cameron>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> --- 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 8e0f925..8febc20 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,
| |