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>
This commit is contained in:
parent
a0700bdd0b
commit
68264e9d67
|
@ -2833,7 +2833,7 @@ static int cciss_revalidate(struct gendisk *disk)
|
||||||
sector_t total_size;
|
sector_t total_size;
|
||||||
InquiryData_struct *inq_buff = NULL;
|
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])
|
if (!h->drv[logvol])
|
||||||
continue;
|
continue;
|
||||||
if (memcmp(h->drv[logvol]->LunID, drv->LunID,
|
if (memcmp(h->drv[logvol]->LunID, drv->LunID,
|
||||||
|
|
Loading…
Reference in a new issue