]> Git Repo - linux.git/commit
net: netif_rx() must disable preemption
authorEric Dumazet <[email protected]>
Thu, 15 Apr 2010 07:14:07 +0000 (00:14 -0700)
committerDavid S. Miller <[email protected]>
Thu, 15 Apr 2010 07:14:07 +0000 (00:14 -0700)
commitb0e28f1effd1d840b36e961edc1def81e01b1ca1
tree41e4299d3039dda9e3977c1a8625d09554e6fe4e
parentfea069152614cdeefba4b2bf80afcddb9c217fc8
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 <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/dev.c
This page took 0.055488 seconds and 4 git commands to generate.