diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-15 03:14:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-15 03:14:07 -0400 |
commit | b0e28f1effd1d840b36e961edc1def81e01b1ca1 (patch) | |
tree | 41e4299d3039dda9e3977c1a8625d09554e6fe4e /include | |
parent | fea069152614cdeefba4b2bf80afcddb9c217fc8 (diff) |
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')
0 files changed, 0 insertions, 0 deletions