Skip to contentSkip to conversation

cciss: Initialize scsi host max_sectors for tape drive support

PATCH In review Stephen M. Cameron 2 participants 2 messages Mar 21, 2012 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cciss: Initialize scsi host max_sectors for tape drive support

From: Stephen M. Cameron <[email protected]>

The default is too small (1024 blocks), use h->cciss_max_sectors (8192 blocks)

---
 drivers/block/cciss_scsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/block/cciss_scsi.c +1 -0
index e820b68..f510a9c 100644
@@ -866,6 +866,7 @@ cciss_scsi_detect(ctlr_info_t *h)
 	sh->can_queue = cciss_tape_cmds;
 	sh->sg_tablesize = h->maxsgentries;
 	sh->max_cmd_len = MAX_COMMAND_SIZE;
+	sh->max_sectors = h->cciss_max_sectors;
 
 	((struct cciss_scsi_adapter_data_t *) 
 		h->scsi_ctlr)->scsi_host = sh;
#1 lore raw
Quoted 3 lines · On Wed, 21 Mar 2012 16:32:03 -0500 "Stephen M. Cameron"…

From: Stephen M. Cameron <[email protected]>

The default is too small

So is the changelog.

Quoted 1 line

(1024 blocks), use h->cciss_max_sectors (8192 blocks)

What problem does this patch solve? What might be the user-visible effects of the change?

Quoted 17 lines
---
 drivers/block/cciss_scsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/block/cciss_scsi.c +1 -0
index e820b68..f510a9c 100644
@@ -866,6 +866,7 @@ cciss_scsi_detect(ctlr_info_t *h)
 	sh->can_queue = cciss_tape_cmds;
 	sh->sg_tablesize = h->maxsgentries;
 	sh->max_cmd_len = MAX_COMMAND_SIZE;
+	sh->max_sectors = h->cciss_max_sectors;
 
 	((struct cciss_scsi_adapter_data_t *) 
 		h->scsi_ctlr)->scsi_host = sh;