Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42748
b: refs/heads/master
c: 92c4231
h: refs/heads/master
v: v3
  • Loading branch information
Mike Miller authored and Linus Torvalds committed Dec 7, 2006
1 parent f0cd019 commit 92d55a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f92e2f5f889803306e50c06e17ee330403e91b8d
refs/heads/master: 92c4231aef720bd5e1d634d2f7335f31277318da
12 changes: 9 additions & 3 deletions trunk/drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ static int cciss_proc_get_info(char *buffer, char **start, off_t offset,
"Firmware Version: %c%c%c%c\n"
"IRQ: %d\n"
"Logical drives: %d\n"
"Max sectors: %d\n"
"Current Q depth: %d\n"
"Current # commands on controller: %d\n"
"Max Q depth since init: %d\n"
Expand All @@ -279,7 +280,9 @@ static int cciss_proc_get_info(char *buffer, char **start, off_t offset,
(unsigned long)h->board_id,
h->firm_ver[0], h->firm_ver[1], h->firm_ver[2],
h->firm_ver[3], (unsigned int)h->intr[SIMPLE_MODE_INT],
h->num_luns, h->Qdepth, h->commands_outstanding,
h->num_luns,
h->cciss_max_sectors,
h->Qdepth, h->commands_outstanding,
h->maxQsinceinit, h->max_outstanding, h->maxSG);

pos += size;
Expand Down Expand Up @@ -1395,7 +1398,7 @@ static void cciss_update_drive_info(int ctlr, int drv_index)
/* This is a limit in the driver and could be eliminated. */
blk_queue_max_phys_segments(disk->queue, MAXSGENTRIES);

blk_queue_max_sectors(disk->queue, 512);
blk_queue_max_sectors(disk->queue, h->cciss_max_sectors);

blk_queue_softirq_done(disk->queue, cciss_softirq_done);

Expand Down Expand Up @@ -3347,6 +3350,9 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
hba[i]->access.set_intr_mask(hba[i], CCISS_INTR_ON);

cciss_procinit(i);

hba[i]->cciss_max_sectors = 2048;

hba[i]->busy_initializing = 0;

for (j = 0; j < NWD; j++) { /* mfm */
Expand All @@ -3371,7 +3377,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
/* This is a limit in the driver and could be eliminated. */
blk_queue_max_phys_segments(q, MAXSGENTRIES);

blk_queue_max_sectors(q, 512);
blk_queue_max_sectors(q, hba[i]->cciss_max_sectors);

blk_queue_softirq_done(q, cciss_softirq_done);

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/block/cciss.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ struct ctlr_info
unsigned int intr[4];
unsigned int msix_vector;
unsigned int msi_vector;
int cciss_max_sectors;
BYTE cciss_read;
BYTE cciss_write;
BYTE cciss_read_capacity;
Expand Down

0 comments on commit 92d55a3

Please sign in to comment.