aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-04-15 00:14:07 -0700
committerDavid S. Miller <davem@davemloft.net>2010-04-15 00:14:07 -0700
commitb0e28f1effd1d840b36e961edc1def81e01b1ca1 (patch)
tree41e4299d3039dda9e3977c1a8625d09554e6fe4e /include/linux/netdevice.h
parentMerge branch 'vhost' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost (diff)
downloadlinux-rng-b0e28f1effd1d840b36e961edc1def81e01b1ca1.tar.xz
linux-rng-b0e28f1effd1d840b36e961edc1def81e01b1ca1.zip
net: netif_rx() must disable preemption
Eric Paris reported netif_rx() is calling smp_processor_id() from preemptible context, in particular when caller is ip_dev_loopback_xmit(). RPS commit added this smp_processor_id() call, this patch makes sure preemption is disabled. rps_get_cpus() wants rcu_read_lock() anyway, we can dot it a bit earlier. Reported-by: Eric Paris <eparis@redhat.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions