]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 15:47:37 +0000 (08:47 -0700)
commit7dd0931198ce3e25901ffb56036bb070efe9f987
tree10bbc06400be41b656dc4e5f9465fceb5b949e3a
parente99e096f4b388824e49ce5c6568eacf46c94438f
dummy: fix rcu_sched self-detected stalls

[ Upstream commit 16b0dc29c1af9df341428f4c49ada4f626258082 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dummy.c