Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68264e9d authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by Jens Axboe
Browse files

cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily.

parent a0700bdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,