diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index ede158d08d9d..8f010a314a3d 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -1787,9 +1787,8 @@ int __init scsi_init_queue(void) | |||
1787 | sgp->name); | 1787 | sgp->name); |
1788 | } | 1788 | } |
1789 | 1789 | ||
1790 | sgp->pool = mempool_create(SG_MEMPOOL_SIZE, | 1790 | sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE, |
1791 | mempool_alloc_slab, mempool_free_slab, | 1791 | sgp->slab); |
1792 | sgp->slab); | ||
1793 | if (!sgp->pool) { | 1792 | if (!sgp->pool) { |
1794 | printk(KERN_ERR "SCSI: can't init sg mempool %s\n", | 1793 | printk(KERN_ERR "SCSI: can't init sg mempool %s\n", |
1795 | sgp->name); | 1794 | sgp->name); |