diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2007-08-08 04:47:10 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-15 13:28:29 -0400 |
commit | 47b87b7948111fa95e99fbd60fc3255423b45809 (patch) | |
tree | 225b84d8ed3282982701ca8fe6fac069131dffa0 /drivers/s390 | |
parent | 83f6d6d7258974a99cbf465878bc11eb4d494c61 (diff) |
[SCSI] zfcp: allocate gid_pn_data objects from gid_pn_cache
allocate gid_pn_data objects from gid_pn_cache.
Allocate gid_pn_data objects from the corresponding cache which ensures
proper alignment.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index ab5ec1feaf4e..90aa53fc4f3e 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
@@ -1503,7 +1503,7 @@ zfcp_gid_pn_buffers_alloc(struct zfcp_gid_pn_data **gid_pn, mempool_t *pool) | |||
1503 | data->ct.pool = pool; | 1503 | data->ct.pool = pool; |
1504 | } | 1504 | } |
1505 | } else { | 1505 | } else { |
1506 | data = kmalloc(sizeof(struct zfcp_gid_pn_data), GFP_ATOMIC); | 1506 | data = kmem_cache_alloc(zfcp_data.gid_pn_cache, GFP_ATOMIC); |
1507 | } | 1507 | } |
1508 | 1508 | ||
1509 | if (NULL == data) | 1509 | if (NULL == data) |
@@ -1531,7 +1531,7 @@ static void zfcp_gid_pn_buffers_free(struct zfcp_gid_pn_data *gid_pn) | |||
1531 | if (gid_pn->ct.pool) | 1531 | if (gid_pn->ct.pool) |
1532 | mempool_free(gid_pn, gid_pn->ct.pool); | 1532 | mempool_free(gid_pn, gid_pn->ct.pool); |
1533 | else | 1533 | else |
1534 | kfree(gid_pn); | 1534 | kmem_cache_free(zfcp_data.gid_pn_cache, gid_pn); |
1535 | } | 1535 | } |
1536 | 1536 | ||
1537 | /** | 1537 | /** |