aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_aux.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2011-02-22 13:54:43 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-25 12:02:09 -0500
commitf9773229be6d8a3caa4c9dfc2961a63ab51a4e2a (patch)
tree4970f351a9b82ed9487f8f23933b7008e650cc25 /drivers/s390/scsi/zfcp_aux.c
parentfcf7e6144df60cd5082e5bc52f1ca5d1ca99a2d6 (diff)
[SCSI] zfcp: Use common FC kmem_cache for GPN_FT request
Switch the allocation of the GPN_FT request data to the FC kmem_cache and remove the zfcp_gpn kmem_cache. Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_aux.c')
-rw-r--r--drivers/s390/scsi/zfcp_aux.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index 6d2beb6ad9ee..324fb1aab6f5 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -122,11 +122,6 @@ static int __init zfcp_module_init(void)
122{ 122{
123 int retval = -ENOMEM; 123 int retval = -ENOMEM;
124 124
125 zfcp_data.gpn_ft_cache = zfcp_cache_hw_align("zfcp_gpn",
126 sizeof(struct zfcp_fc_gpn_ft_req));
127 if (!zfcp_data.gpn_ft_cache)
128 goto out;
129
130 zfcp_data.qtcb_cache = zfcp_cache_hw_align("zfcp_qtcb", 125 zfcp_data.qtcb_cache = zfcp_cache_hw_align("zfcp_qtcb",
131 sizeof(struct fsf_qtcb)); 126 sizeof(struct fsf_qtcb));
132 if (!zfcp_data.qtcb_cache) 127 if (!zfcp_data.qtcb_cache)
@@ -171,8 +166,6 @@ out_transport:
171out_fc_cache: 166out_fc_cache:
172 kmem_cache_destroy(zfcp_data.qtcb_cache); 167 kmem_cache_destroy(zfcp_data.qtcb_cache);
173out_qtcb_cache: 168out_qtcb_cache:
174 kmem_cache_destroy(zfcp_data.gpn_ft_cache);
175out:
176 return retval; 169 return retval;
177} 170}
178 171
@@ -185,7 +178,6 @@ static void __exit zfcp_module_exit(void)
185 fc_release_transport(zfcp_data.scsi_transport_template); 178 fc_release_transport(zfcp_data.scsi_transport_template);
186 kmem_cache_destroy(zfcp_fc_req_cache); 179 kmem_cache_destroy(zfcp_fc_req_cache);
187 kmem_cache_destroy(zfcp_data.qtcb_cache); 180 kmem_cache_destroy(zfcp_data.qtcb_cache);
188 kmem_cache_destroy(zfcp_data.gpn_ft_cache);
189} 181}
190 182
191module_exit(zfcp_module_exit); 183module_exit(zfcp_module_exit);