Commit cece194
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>1 parent ba78e2d commit cece194
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2517 | 2517 | | |
2518 | 2518 | | |
2519 | 2519 | | |
| 2520 | + | |
2520 | 2521 | | |
2521 | 2522 | | |
2522 | 2523 | | |
| |||
2526 | 2527 | | |
2527 | 2528 | | |
2528 | 2529 | | |
| 2530 | + | |
2529 | 2531 | | |
2530 | 2532 | | |
2531 | 2533 | | |
| |||
0 commit comments