aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index adbc05c44362..6d2beb6ad9ee 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -132,11 +132,6 @@ static int __init zfcp_module_init(void)
132 if (!zfcp_data.qtcb_cache) 132 if (!zfcp_data.qtcb_cache)
133 goto out_qtcb_cache; 133 goto out_qtcb_cache;
134 134
135 zfcp_data.gid_pn_cache = zfcp_cache_hw_align("zfcp_gid",
136 sizeof(struct zfcp_fc_gid_pn));
137 if (!zfcp_data.gid_pn_cache)
138 goto out_gid_cache;
139
140 zfcp_fc_req_cache = zfcp_cache_hw_align("zfcp_fc_req", 135 zfcp_fc_req_cache = zfcp_cache_hw_align("zfcp_fc_req",
141 sizeof(struct zfcp_fc_req)); 136 sizeof(struct zfcp_fc_req));
142 if (!zfcp_fc_req_cache) 137 if (!zfcp_fc_req_cache)
@@ -174,8 +169,6 @@ out_misc:
174out_transport: 169out_transport:
175 kmem_cache_destroy(zfcp_fc_req_cache); 170 kmem_cache_destroy(zfcp_fc_req_cache);
176out_fc_cache: 171out_fc_cache:
177 kmem_cache_destroy(zfcp_data.gid_pn_cache);
178out_gid_cache:
179 kmem_cache_destroy(zfcp_data.qtcb_cache); 172 kmem_cache_destroy(zfcp_data.qtcb_cache);
180out_qtcb_cache: 173out_qtcb_cache:
181 kmem_cache_destroy(zfcp_data.gpn_ft_cache); 174 kmem_cache_destroy(zfcp_data.gpn_ft_cache);
@@ -191,7 +184,6 @@ static void __exit zfcp_module_exit(void)
191 misc_deregister(&zfcp_cfdc_misc); 184 misc_deregister(&zfcp_cfdc_misc);
192 fc_release_transport(zfcp_data.scsi_transport_template); 185 fc_release_transport(zfcp_data.scsi_transport_template);
193 kmem_cache_destroy(zfcp_fc_req_cache); 186 kmem_cache_destroy(zfcp_fc_req_cache);
194 kmem_cache_destroy(zfcp_data.gid_pn_cache);
195 kmem_cache_destroy(zfcp_data.qtcb_cache); 187 kmem_cache_destroy(zfcp_data.qtcb_cache);
196 kmem_cache_destroy(zfcp_data.gpn_ft_cache); 188 kmem_cache_destroy(zfcp_data.gpn_ft_cache);
197} 189}
@@ -263,7 +255,7 @@ static int zfcp_allocate_low_mem_buffers(struct zfcp_adapter *adapter)
263 return -ENOMEM; 255 return -ENOMEM;
264 256
265 adapter->pool.gid_pn = 257 adapter->pool.gid_pn =
266 mempool_create_slab_pool(1, zfcp_data.gid_pn_cache); 258 mempool_create_slab_pool(1, zfcp_fc_req_cache);
267 if (!adapter->pool.gid_pn) 259 if (!adapter->pool.gid_pn)
268 return -ENOMEM; 260 return -ENOMEM;
269 261