From: Changli Gao Date: Sun, 8 Aug 2010 03:35:43 +0000 (-0700) Subject: net: disable preemption before call smp_processor_id() X-Git-Tag: v2.6.36-rc1~305^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cece1945bffcf1a823cdfa36669beae118419351;p=pandora-kernel.git net: disable preemption before call smp_processor_id() Although netif_rx() isn't expected to be called in process context with preemption enabled, it'd better handle this case. And this is why get_cpu() is used in the non-RPS #ifdef branch. If tree RCU is selected, rcu_read_lock() won't disable preemption, so preempt_disable() should be called explictly. Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- Reading git-diff-tree failed