[PATCH] cciss: Initialize scsi host max_sectors for tape drive support

From: Stephen M. Cameron
Date: Wed Mar 21 2012 - 17:32:08 EST


From: Stephen M. Cameron <scameron@xxxxxxxxxxxxxxxxxx>

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

Signed-off-by: Stephen M. Cameron <scameron@xxxxxxxxxxxxxxxxxx>
---
drivers/block/cciss_scsi.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c
index e820b68..f510a9c 100644
--- a/drivers/block/cciss_scsi.c
+++ b/drivers/block/cciss_scsi.c
@@ -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;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/