[PATCH] try parent numa_node at first before using default v2

2007-07-13 Thread Yinghai Lu
[PATCH] try parent numa_node at first before using default v2 For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. pci_device_add will call device_initialize and set_dev_node(>dev, pcibus_to_node(bus)). other device such as netdev, and usb_device, set_dev_node is ne

[PATCH] try parent numa_node at first before using default v2

2007-07-13 Thread Yinghai Lu
[PATCH] try parent numa_node at first before using default v2 For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. pci_device_add will call device_initialize and set_dev_node(dev-dev, pcibus_to_node(bus)). other device such as netdev, and usb_device, set_dev_node is never

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Cornelia Huck
On Thu, 12 Jul 2007 10:59:53 -0700, Yinghai Lu <[EMAIL PROTECTED]> wrote: > @@ -1285,8 +1290,11 @@ int device_move(struct device *dev, struct device > *new_parent) > dev->parent = new_parent; > if (old_parent) > klist_remove(>knode_parent); > - if (new_parent) > +

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
On 7/12/07, Greg KH <[EMAIL PROTECTED]> wrote: But you were not able to test USB, right? Does that work properly now with this patch? Will test it later with USB cdrom by big file reading. YH - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Greg KH
On Thu, Jul 12, 2007 at 12:06:00PM -0700, Yinghai Lu wrote: > On 7/12/07, Greg KH <[EMAIL PROTECTED]> wrote: > > On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: > > Please split this into two separate patches, as they are doing two > > different things. One for the driver core, and

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
On 7/12/07, Greg KH <[EMAIL PROTECTED]> wrote: On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: Please split this into two separate patches, as they are doing two different things. One for the driver core, and one for pci devices. they need to applied together, otherwise all

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Greg KH
On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: > [PATCH] try parent numa_node at first before using default > > For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. > pci_device_add will call device_initialize and set_dev_node(>dev, >

[PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
[PATCH] try parent numa_node at first before using default For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. pci_device_add will call device_initialize and set_dev_node(>dev, pcibus_to_node(bus)). other device such as netdev, and usb_device, set_dev_node is ne

[PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
[PATCH] try parent numa_node at first before using default For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. pci_device_add will call device_initialize and set_dev_node(dev-dev, pcibus_to_node(bus)). other device such as netdev, and usb_device, set_dev_node is never

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Greg KH
On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: [PATCH] try parent numa_node at first before using default For pci_device, pcibios_scan_root and pci_scan_root will call pci_device_add. pci_device_add will call device_initialize and set_dev_node(dev-dev, pcibus_to_node(bus

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
On 7/12/07, Greg KH [EMAIL PROTECTED] wrote: On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: Please split this into two separate patches, as they are doing two different things. One for the driver core, and one for pci devices. they need to applied together, otherwise all pci_dev

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Greg KH
On Thu, Jul 12, 2007 at 12:06:00PM -0700, Yinghai Lu wrote: On 7/12/07, Greg KH [EMAIL PROTECTED] wrote: On Thu, Jul 12, 2007 at 10:59:53AM -0700, Yinghai Lu wrote: Please split this into two separate patches, as they are doing two different things. One for the driver core, and one for

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Yinghai Lu
On 7/12/07, Greg KH [EMAIL PROTECTED] wrote: But you were not able to test USB, right? Does that work properly now with this patch? Will test it later with USB cdrom by big file reading. YH - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH] try parent numa_node at first before using default

2007-07-12 Thread Cornelia Huck
On Thu, 12 Jul 2007 10:59:53 -0700, Yinghai Lu [EMAIL PROTECTED] wrote: @@ -1285,8 +1290,11 @@ int device_move(struct device *dev, struct device *new_parent) dev-parent = new_parent; if (old_parent) klist_remove(dev-knode_parent); - if (new_parent) + if