]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ifb: fix rcu_sched self-detected stalls
authordingtianhong <dingtianhong@huawei.com>
Wed, 10 Jul 2013 04:04:02 +0000 (12:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:18:41 +0000 (16:18 -0700)
commit14dfbe18c960e9367a6a25f6d7933e293fae1d20
treea0806d190fc5f1fbd4f63ac6a5918d75acfe2c50
parent83e460923c7640fe6af1a1b386513dcc26fe7251
ifb: fix rcu_sched self-detected stalls

[ Upstream commit 440d57bc5ff55ec1efb3efc9cbe9420b4bbdfefa ]

According to the commit 16b0dc29c1af9df341428f4c49ada4f626258082
(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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ifb.c