scsi: introduce a max_segment_size host_template parameters
authorChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 15:17:03 +0000 (16:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 19 Dec 2018 04:13:12 +0000 (23:13 -0500)
commit50c2e9107f176a82e14567b39c5d0f2a208cc82c
tree94cdec8e5724b7fb66f0781bcf6a4360653b097e
parent2a3d4eb8e228061c09d5ca8bf39e7f00c2091213
scsi: introduce a max_segment_size host_template parameters

This allows the host driver to indicate the maximum supported
segment size in a nice an easy way, so that the driver doesn't
have to worry about DMA-layer imposed limitations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/hosts.c
drivers/scsi/scsi_debug.c
drivers/scsi/scsi_lib.c
include/scsi/scsi_host.h