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)
commit16b0dc29c1af9df341428f4c49ada4f626258082
tree489edb6c490de6e3ef349dc3d4e8b0a5d726d161
parentc5d21c4b2a7765ab0600c8426374b50eb9f4a36f
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