]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/ide/ide-disk.c
[PATCH] NUMA aware block device control structure allocation
[thirdparty/linux.git] / drivers / ide / ide-disk.c
index 3302cd8eab4c160caf430c1a22268abcc024e5e9..d6f934886b04da6f41eb9f7c4d9eabdde824c0de 100644 (file)
@@ -1215,7 +1215,8 @@ static int ide_disk_probe(struct device *dev)
        if (!idkp)
                goto failed;
 
-       g = alloc_disk(1 << PARTN_BITS);
+       g = alloc_disk_node(1 << PARTN_BITS,
+                       pcibus_to_node(drive->hwif->pci_dev->bus));
        if (!g)
                goto out_free_idkp;