scsi: core: add a host / host template field for the virt boundary
This allows drivers setting it up easily instead of branching out to block layer calls in slave_alloc, and ensures the upgraded max_segment_size setting gets picked up by the DMA layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Kashyap Desai < kashyap.desai@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
f9b0530fa0
commit
7ad388d8e4
@@ -369,6 +369,8 @@ struct scsi_host_template {
|
||||
*/
|
||||
unsigned long dma_boundary;
|
||||
|
||||
unsigned long virt_boundary_mask;
|
||||
|
||||
/*
|
||||
* This specifies "machine infinity" for host templates which don't
|
||||
* limit the transfer size. Note this limit represents an absolute
|
||||
@@ -587,6 +589,7 @@ struct Scsi_Host {
|
||||
unsigned int max_sectors;
|
||||
unsigned int max_segment_size;
|
||||
unsigned long dma_boundary;
|
||||
unsigned long virt_boundary_mask;
|
||||
/*
|
||||
* In scsi-mq mode, the number of hardware queues supported by the LLD.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user