mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
ifb: fix rcu_sched self-detected stalls
[ Upstream commit440d57bc5f] According to the commit16b0dc29c1(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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c51a7a308e
commit
6683151aee
@@ -292,8 +292,10 @@ static int __init ifb_init_module(void)
|
||||
rtnl_lock();
|
||||
err = __rtnl_link_register(&ifb_link_ops);
|
||||
|
||||
for (i = 0; i < numifbs && !err; i++)
|
||||
for (i = 0; i < numifbs && !err; i++) {
|
||||
err = ifb_init_one(i);
|
||||
cond_resched();
|
||||
}
|
||||
if (err)
|
||||
__rtnl_link_unregister(&ifb_link_ops);
|
||||
rtnl_unlock();
|
||||
|
||||
Reference in New Issue
Block a user