mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily.
@ 2011-01-06 16:39 Stephen M. Cameron
  0 siblings, 0 replies; only message in thread
From: Stephen M. Cameron @ 2011-01-06 16:39 UTC (permalink / raw)
  To: axboe; +Cc: akpm, smcameron, linux-kernel, mike.miller, thenzl

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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-06 16:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 16:39 [PATCH] cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily Stephen M. Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®