]> git.baikalelectronics.ru Git - kernel.git/commit
dummy: fix rcu_sched self-detected stalls
authorEric Dumazet <edumazet@google.com>
Sun, 10 Jun 2012 21:11:57 +0000 (21:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 08:12:04 +0000 (01:12 -0700)
commit4631dddb86a3dcfbbcdbb2f432e7b54fd10a7f8a
tree489edb6c490de6e3ef349dc3d4e8b0a5d726d161
parent64c47001410f2cdd1a9a33c4ba3d2ad102c4807d
dummy: fix rcu_sched self-detected stalls

Trying to "modprobe dummy numdummies=30000" triggers :

INFO: rcu_sched self-detected stall on CPU { 8} (t=60000 jiffies)

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

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

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c