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/scsi_sysfs.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/scsi_sysfs.c')
-rw-r--r-- | drivers/scsi/scsi_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index c3f67373a4f8..20ad59dff730 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c | |||
@@ -251,6 +251,7 @@ shost_rd_attr(host_busy, "%hu\n"); | |||
251 | shost_rd_attr(cmd_per_lun, "%hd\n"); | 251 | shost_rd_attr(cmd_per_lun, "%hd\n"); |
252 | shost_rd_attr(can_queue, "%hd\n"); | 252 | shost_rd_attr(can_queue, "%hd\n"); |
253 | shost_rd_attr(sg_tablesize, "%hu\n"); | 253 | shost_rd_attr(sg_tablesize, "%hu\n"); |
254 | shost_rd_attr(sg_prot_tablesize, "%hu\n"); | ||
254 | shost_rd_attr(unchecked_isa_dma, "%d\n"); | 255 | shost_rd_attr(unchecked_isa_dma, "%d\n"); |
255 | shost_rd_attr(prot_capabilities, "%u\n"); | 256 | shost_rd_attr(prot_capabilities, "%u\n"); |
256 | shost_rd_attr(prot_guard_type, "%hd\n"); | 257 | shost_rd_attr(prot_guard_type, "%hd\n"); |
@@ -262,6 +263,7 @@ static struct attribute *scsi_sysfs_shost_attrs[] = { | |||
262 | &dev_attr_cmd_per_lun.attr, | 263 | &dev_attr_cmd_per_lun.attr, |
263 | &dev_attr_can_queue.attr, | 264 | &dev_attr_can_queue.attr, |
264 | &dev_attr_sg_tablesize.attr, | 265 | &dev_attr_sg_tablesize.attr, |
266 | &dev_attr_sg_prot_tablesize.attr, | ||
265 | &dev_attr_unchecked_isa_dma.attr, | 267 | &dev_attr_unchecked_isa_dma.attr, |
266 | &dev_attr_proc_name.attr, | 268 | &dev_attr_proc_name.attr, |
267 | &dev_attr_scan.attr, | 269 | &dev_attr_scan.attr, |