Skip to contentSkip to conversation

cciss: set SCSI max cmd len to 16, as default is wrong.

PATCH New Stephen M. Cameron 1 participant 1 message Jun 11, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cciss: set SCSI max cmd len to 16, as default is wrong.

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

cciss: set SCSI max cmd len to 16, as default is wrong.

---
 drivers/block/cciss_scsi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/block/cciss_scsi.c +1 -0
index e1d0e2c..e082a26 100644
@@ -861,6 +861,7 @@ cciss_scsi_detect(int ctlr)
 	sh->n_io_port = 0;	// I don't think we use these two...
 	sh->this_id = SELF_SCSI_ID;  
 	sh->sg_tablesize = hba[ctlr]->maxsgentries;
+	sh->max_cmd_len = MAX_COMMAND_SIZE;
 
 	((struct cciss_scsi_adapter_data_t *) 
 		hba[ctlr]->scsi_ctlr)->scsi_host = sh;