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
parentfea069152614cdeefba4b2bf80afcddb9c217fc8 (diff)
downloadkernel_samsung_espresso10-b0e28f1effd1d840b36e961edc1def81e01b1ca1.zip
kernel_samsung_espresso10-b0e28f1effd1d840b36e961edc1def81e01b1ca1.tar.gz
kernel_samsung_espresso10-b0e28f1effd1d840b36e961edc1def81e01b1ca1.tar.bz2
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 'include/linux/netdevice.h')
0 files changed, 0 insertions, 0 deletions