diff options
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 7b31e3f403f9..7b353647cb90 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Interface to Linux SCSI midlayer. | 4 | * Interface to Linux SCSI midlayer. |
5 | * | 5 | * |
6 | * Copyright IBM Corp. 2002, 2010 | 6 | * Copyright IBM Corp. 2002, 2013 |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #define KMSG_COMPONENT "zfcp" | 9 | #define KMSG_COMPONENT "zfcp" |
@@ -311,8 +311,12 @@ static struct scsi_host_template zfcp_scsi_host_template = { | |||
311 | .proc_name = "zfcp", | 311 | .proc_name = "zfcp", |
312 | .can_queue = 4096, | 312 | .can_queue = 4096, |
313 | .this_id = -1, | 313 | .this_id = -1, |
314 | .sg_tablesize = 1, /* adjusted later */ | 314 | .sg_tablesize = (((QDIO_MAX_ELEMENTS_PER_BUFFER - 1) |
315 | .max_sectors = 8, /* adjusted later */ | 315 | * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2), |
316 | /* GCD, adjusted later */ | ||
317 | .max_sectors = (((QDIO_MAX_ELEMENTS_PER_BUFFER - 1) | ||
318 | * ZFCP_QDIO_MAX_SBALS_PER_REQ) - 2) * 8, | ||
319 | /* GCD, adjusted later */ | ||
316 | .dma_boundary = ZFCP_QDIO_SBALE_LEN - 1, | 320 | .dma_boundary = ZFCP_QDIO_SBALE_LEN - 1, |
317 | .cmd_per_lun = 1, | 321 | .cmd_per_lun = 1, |
318 | .use_clustering = 1, | 322 | .use_clustering = 1, |