Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: make the usb_device numa_node get assigned from controller

So we can use dev_to_node(&usb_dev->dev) later in kmalloc_node to dma buffer

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Cc: Andi Kleen <ak@suse.de>
Acked-by: Christoph Lameter <clameter@sgi.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Yinghai Lu and committed by
Greg Kroah-Hartman
70f458f6 0ffbbe25

+1
+1
drivers/usb/core/usb.c
··· 253 253 dev->dev.bus = &usb_bus_type; 254 254 dev->dev.type = &usb_device_type; 255 255 dev->dev.dma_mask = bus->controller->dma_mask; 256 + set_dev_node(&dev->dev, dev_to_node(bus->controller)); 256 257 dev->state = USB_STATE_ATTACHED; 257 258 258 259 INIT_LIST_HEAD(&dev->ep0.urb_list);