From: Eric Dumazet Date: Thu, 15 Apr 2010 07:14:07 +0000 (-0700) Subject: net: netif_rx() must disable preemption X-Git-Tag: v2.6.35-rc1~473^2~463 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0e28f1effd1d840b36e961edc1def81e01b1ca1;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed