]> Pileus Git - ~andy/linux/commitdiff
[SCSI] ibmvscsi: avoid unnecessary use of kzalloc_pool
authorSage Weil <sage@newdream.net>
Mon, 3 Aug 2009 20:54:47 +0000 (13:54 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:21 +0000 (17:52 -0500)
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>
drivers/scsi/ibmvscsi/ibmvfc.c

index 166d96450a0eea134dd5b88ecfbfd48fd906a2de..bb2c696c006acc6f59d82b0aeb1d06980e5dc45c 100644 (file)
@@ -4217,7 +4217,7 @@ static int ibmvfc_alloc_mem(struct ibmvfc_host *vhost)
        if (!vhost->trace)
                goto free_disc_buffer;
 
-       vhost->tgt_pool = mempool_create_kzalloc_pool(IBMVFC_TGT_MEMPOOL_SZ,
+       vhost->tgt_pool = mempool_create_kmalloc_pool(IBMVFC_TGT_MEMPOOL_SZ,
                                                      sizeof(struct ibmvfc_target));
 
        if (!vhost->tgt_pool) {