]> git.baikalelectronics.ru Git - kernel.git/commit
ifb: fix rcu_sched self-detected stalls
authordingtianhong <dingtianhong@huawei.com>
Wed, 10 Jul 2013 04:04:02 +0000 (12:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jul 2013 01:44:03 +0000 (18:44 -0700)
commitc911646aca0dee26b0f14a44cb76dc5bd959b567
treebca8e4e5b4bcf8240127e532375b83d17c9491e4
parent9ba0abaa3c41e0dbc2cb942f037064b7810ac3c0
ifb: fix rcu_sched self-detected stalls

According to the commit 4631dddb86a3dcfbbcdbb2f432e7b54fd10a7f8a
(dummy: fix rcu_sched self-detected stalls)

Eric Dumazet fix the problem in dummy, but the ifb will occur the
same problem like the dummy modules.

Trying to "modprobe ifb numifbs=30000" triggers :

INFO: rcu_sched self-detected stall on CPU

After this splat, RTNL is locked and reboot is needed.

We must call cond_resched() to avoid this, even holding RTNL.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ifb.c