diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-08-07 20:35:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-07 20:35:43 -0700 |
commit | cece1945bffcf1a823cdfa36669beae118419351 (patch) | |
tree | a3bd2c2a1953624b710524f56d98d7b1496f60a6 /net/core/net-traces.c | |
parent | ba78e2ddca844598c0efcbf2c76d73519a61b902 (diff) | |
download | op-kernel-dev-cece1945bffcf1a823cdfa36669beae118419351.zip op-kernel-dev-cece1945bffcf1a823cdfa36669beae118419351.tar.gz |
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 <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-traces.c')
0 files changed, 0 insertions, 0 deletions