aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ibmvscsi
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-08-03 16:54:47 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 18:52:21 -0400
commitd68866927ddd0ed3145cb3fba4a1c07ca5e4709d (patch)
tree674973ce41d28e8046cdfa929781a192b30f0047 /drivers/scsi/ibmvscsi
parentd430ddc660d2f9875125b4f13a2b9279313db529 (diff)
[SCSI] ibmvscsi: avoid unnecessary use of kzalloc_pool
The allocated struct is manually zeroed after allocation, so avoid using the (broken) kzalloc mempool (which does not re-zero previously used items when they are returned to the pool). Acked-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ibmvscsi')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index 166d96450a0e..bb2c696c006a 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
@@ -4217,7 +4217,7 @@ static int ibmvfc_alloc_mem(struct ibmvfc_host *vhost)
4217 if (!vhost->trace) 4217 if (!vhost->trace)
4218 goto free_disc_buffer; 4218 goto free_disc_buffer;
4219 4219
4220 vhost->tgt_pool = mempool_create_kzalloc_pool(IBMVFC_TGT_MEMPOOL_SZ, 4220 vhost->tgt_pool = mempool_create_kmalloc_pool(IBMVFC_TGT_MEMPOOL_SZ,
4221 sizeof(struct ibmvfc_target)); 4221 sizeof(struct ibmvfc_target));
4222 4222
4223 if (!vhost->tgt_pool) { 4223 if (!vhost->tgt_pool) {