mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] NUMA aware block device control structure allocation
Patch to allocate the control structures for for ide devices on the node of the device itself (for NUMA systems). The patch depends on the Slab API change patch by Manfred and me (in mm) and the pcidev_to_node patch that I posted today. Does some realignment too. Signed-off-by: Justin M. Forbes <[email protected]> Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Pravin Shelar <[email protected]> Signed-off-by: Shobhit Dayal <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8c5a09082f
commit
1946089a10
11 changed files with 77 additions and 30 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -977,8 +977,9 @@ static int ide_init_queue(ide_drive_t *drive)
|
|||
* limits and LBA48 we could raise it but as yet
|
||||
* do not.
|
||||
*/
|
||||
|
||||
q = blk_init_queue(do_ide_request, &ide_lock);
|
||||
|
||||
q = blk_init_queue_node(do_ide_request, &ide_lock,
|
||||
pcibus_to_node(drive->hwif->pci_dev->bus));
|
||||
if (!q)
|
||||
return 1;
|
||||
|
||||
|
|
@ -1095,7 +1096,8 @@ static int init_irq (ide_hwif_t *hwif)
|
|||
hwgroup->hwif->next = hwif;
|
||||
spin_unlock_irq(&ide_lock);
|
||||
} else {
|
||||
hwgroup = kmalloc(sizeof(ide_hwgroup_t),GFP_KERNEL);
|
||||
hwgroup = kmalloc_node(sizeof(ide_hwgroup_t), GFP_KERNEL,
|
||||
pcibus_to_node(hwif->drives[0].hwif->pci_dev->bus));
|
||||
if (!hwgroup)
|
||||
goto out_up;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue