projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0700bd
)
cciss: make cciss_revalidate not loop through CISS_MAX_LUNS volumes unnecessarily.
author
Stephen M. Cameron
<StephenM.Cameron>
Wed, 19 Jan 2011 15:25:02 +0000
(08:25 -0700)
committer
Jens Axboe
<jaxboe@fusionio.com>
Wed, 19 Jan 2011 15:25:02 +0000
(08:25 -0700)
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>
drivers/block/cciss.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/cciss.c
b/drivers/block/cciss.c
index 516d5bbec2b6fc5c78884a1d58c44ae4fc0b73f6..9279272b3732719c9b660e6abc6146dd6dfee960 100644
(file)
--- 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,