diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-09-10 14:50:10 -0400 |
---|---|---|
committer | Jens Axboe <axboe@carl.home.kernel.dk> | 2010-09-10 14:50:10 -0400 |
commit | 13f05c8d8e98bbdce89158bfdb2e380940695a88 (patch) | |
tree | 055215e7e2b1bdc684ead64daa61b30b35eaa3c5 /drivers/scsi/hosts.c | |
parent | c8bf1336824ebd698d37b71763e1c43190f2229a (diff) |
block/scsi: Provide a limit on the number of integrity segments
Some controllers have a hardware limit on the number of protection
information scatter-gather list segments they can handle.
Introduce a max_integrity_segments limit in the block layer and provide
a new scsi_host_template setting that allows HBA drivers to provide a
value suitable for the hardware.
Add support for honoring the integrity segment limit when merging both
bios and requests.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r-- | drivers/scsi/hosts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 8a8f803439e1..10478153641b 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c | |||
@@ -376,6 +376,7 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) | |||
376 | shost->this_id = sht->this_id; | 376 | shost->this_id = sht->this_id; |
377 | shost->can_queue = sht->can_queue; | 377 | shost->can_queue = sht->can_queue; |
378 | shost->sg_tablesize = sht->sg_tablesize; | 378 | shost->sg_tablesize = sht->sg_tablesize; |
379 | shost->sg_prot_tablesize = sht->sg_prot_tablesize; | ||
379 | shost->cmd_per_lun = sht->cmd_per_lun; | 380 | shost->cmd_per_lun = sht->cmd_per_lun; |
380 | shost->unchecked_isa_dma = sht->unchecked_isa_dma; | 381 | shost->unchecked_isa_dma = sht->unchecked_isa_dma; |
381 | shost->use_clustering = sht->use_clustering; | 382 | shost->use_clustering = sht->use_clustering; |