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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2013 19:33:55 +0000 (14:33 -0500)
commit303c07db487be59ae9fda10600ea65ca11c21497
tree23a66e53bed3b6f8093d815890388b9057760bd9
parent7cb08d7f3a5ea6131f4f243c2080530ac41cb293
ppp: set qdisc_tx_busylock to avoid LOCKDEP splat

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>
drivers/net/ppp/ppp_generic.c