diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 029bbf461bb2..017729c59a49 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2154,8 +2154,7 @@ qla2x00_allocate_sp_pool(scsi_qla_host_t *ha) | |||
2154 | int rval; | 2154 | int rval; |
2155 | 2155 | ||
2156 | rval = QLA_SUCCESS; | 2156 | rval = QLA_SUCCESS; |
2157 | ha->srb_mempool = mempool_create(SRB_MIN_REQ, mempool_alloc_slab, | 2157 | ha->srb_mempool = mempool_create_slab_pool(SRB_MIN_REQ, srb_cachep); |
2158 | mempool_free_slab, srb_cachep); | ||
2159 | if (ha->srb_mempool == NULL) { | 2158 | if (ha->srb_mempool == NULL) { |
2160 | qla_printk(KERN_INFO, ha, "Unable to allocate SRB mempool.\n"); | 2159 | qla_printk(KERN_INFO, ha, "Unable to allocate SRB mempool.\n"); |
2161 | rval = QLA_FUNCTION_FAILED; | 2160 | rval = QLA_FUNCTION_FAILED; |