diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-09-18 16:28:49 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-23 18:54:24 -0400 |
commit | dd52e0eaf891cd85bf2ca057c15ed6bfd76db4e6 (patch) | |
tree | dc457fe1b732716b715c05864ab02be767414cb4 /drivers/s390/scsi/zfcp_scsi.c | |
parent | d136205182b1ea4897da31e325a296f8831a6796 (diff) |
[SCSI] zfcp: create private slab caches to guarantee proper data alignment
Create private slab caches in order to guarantee proper alignment of
data structures that get passed to hardware.
Sidenote: with this patch slab cache debugging will finally work on s390
(at least no known problems left).
Furthermore this patch does some minor cleanups:
- store ptr for transport template in struct zfcp_data
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com>
Compile fix ups and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_scsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 1bb55086db9f..4857cccb1d5b 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c | |||
@@ -39,11 +39,10 @@ static struct zfcp_unit *zfcp_unit_lookup(struct zfcp_adapter *, int, | |||
39 | 39 | ||
40 | static struct device_attribute *zfcp_sysfs_sdev_attrs[]; | 40 | static struct device_attribute *zfcp_sysfs_sdev_attrs[]; |
41 | 41 | ||
42 | struct scsi_transport_template *zfcp_transport_template; | ||
43 | |||
44 | struct zfcp_data zfcp_data = { | 42 | struct zfcp_data zfcp_data = { |
45 | .scsi_host_template = { | 43 | .scsi_host_template = { |
46 | .name = ZFCP_NAME, | 44 | .name = ZFCP_NAME, |
45 | .module = THIS_MODULE, | ||
47 | .proc_name = "zfcp", | 46 | .proc_name = "zfcp", |
48 | .slave_alloc = zfcp_scsi_slave_alloc, | 47 | .slave_alloc = zfcp_scsi_slave_alloc, |
49 | .slave_configure = zfcp_scsi_slave_configure, | 48 | .slave_configure = zfcp_scsi_slave_configure, |
@@ -607,7 +606,7 @@ zfcp_adapter_scsi_register(struct zfcp_adapter *adapter) | |||
607 | adapter->scsi_host->max_channel = 0; | 606 | adapter->scsi_host->max_channel = 0; |
608 | adapter->scsi_host->unique_id = unique_id++; /* FIXME */ | 607 | adapter->scsi_host->unique_id = unique_id++; /* FIXME */ |
609 | adapter->scsi_host->max_cmd_len = ZFCP_MAX_SCSI_CMND_LENGTH; | 608 | adapter->scsi_host->max_cmd_len = ZFCP_MAX_SCSI_CMND_LENGTH; |
610 | adapter->scsi_host->transportt = zfcp_transport_template; | 609 | adapter->scsi_host->transportt = zfcp_data.scsi_transport_template; |
611 | 610 | ||
612 | /* | 611 | /* |
613 | * save a pointer to our own adapter data structure within | 612 | * save a pointer to our own adapter data structure within |