]> err.no Git - linux-2.6/blobdiff - drivers/scsi/scsi_lib.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
[linux-2.6] / drivers / scsi / scsi_lib.c
index ede158d08d9df06830b92b6047b0a9453a71611c..8f010a314a3d8b0e9a1e7d795f5badf81718c228 100644 (file)
@@ -1787,9 +1787,8 @@ int __init scsi_init_queue(void)
                                        sgp->name);
                }
 
-               sgp->pool = mempool_create(SG_MEMPOOL_SIZE,
-                               mempool_alloc_slab, mempool_free_slab,
-                               sgp->slab);
+               sgp->pool = mempool_create_slab_pool(SG_MEMPOOL_SIZE,
+                                                    sgp->slab);
                if (!sgp->pool) {
                        printk(KERN_ERR "SCSI: can't init sg mempool %s\n",
                                        sgp->name);