pkt_sched: Add lockdep annotation for qdisc locks
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 19 Aug 2008 03:53:34 +0000 (20:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Aug 2008 04:06:09 +0000 (21:06 -0700)
commit25bfcd5a78a377ea4c54a3c21e44590e2fc478a6
tree6abe3cb036c724206ec0996351aa8eec12d12b42
parent8608db031b4d2932d645709e2cfe8fbcd91a7305
pkt_sched: Add lockdep annotation for qdisc locks

Qdisc locks are initialized in the same function, qdisc_alloc(), so
lockdep can't distinguish tx qdisc lock from rx and reports "possible
recursive locking detected" when both these locks are taken eg. while
using act_mirred with ifb. This looks like a false positive. Anyway,
after this patch these locks will be reported more exactly.

Reported-by: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c