]> git.baikalelectronics.ru Git - kernel.git/commit
[I/OAT]: Remove CPU hotplug lock from net_dma_rebalance
authorChris Leech <christopher.leech@intel.com>
Wed, 2 Aug 2006 21:21:19 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2006 21:21:19 +0000 (14:21 -0700)
commitae1ec6e3f4992c68097b8eedaa9dc0a25b1dd21a
treed60117a38c614f916defbb91eda0b9e38feeb8ec
parentd018e250ab228abe12a24949930cdfe067e21075
[I/OAT]: Remove CPU hotplug lock from net_dma_rebalance

Remove the lock_cpu_hotplug()/unlock_cpu_hotplug() calls from
net_dma_rebalance

The lock_cpu_hotplug()/unlock_cpu_hotplug() sequence in
net_dma_rebalance is both incorrect (as pointed out by David Miller)
because lock_cpu_hotplug() may sleep while the net_dma_event_lock
spinlock is held, and unnecessary (as pointed out by Andrew Morton) as
spin_lock() disables preemption which protects from CPU hotplug
events.

Signed-off-by: Chris Leech <christopher.leech@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c