]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ppp: set qdisc_tx_busylock to avoid LOCKDEP splat
authorEric Dumazet <edumazet@google.com>
Tue, 19 Feb 2013 18:42:03 +0000 (10:42 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:40 +0000 (05:38 -0800)
commita515e3ea9d17fe16b2b15aab8dd7f85f9a3eabac
treecd6362bb525783f0c52ae2a65f846a2a59773f61
parent0680a2c2b6c92fdbb2ff8a8c87b0207db5323de7
ppp: set qdisc_tx_busylock to avoid LOCKDEP splat

[ Upstream commit 303c07db487be59ae9fda10600ea65ca11c21497 ]

If a qdisc is installed on a ppp device, its possible to get
a lockdep splat under stress, because nested dev_queue_xmit() can
lock busylock a second time (on a different device, so its a false
positive)

Avoid this problem using a distinct lock_class_key for ppp
devices.

Reported-by: Yanko Kaneti <yaneti@declera.com>
Tested-by: Yanko Kaneti <yaneti@declera.com>
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/ppp/ppp_generic.c