netdev-linux: Fix self-deadlocks in traffic control code.
authorBen Pfaff <blp@nicira.com>
Fri, 16 Aug 2013 21:25:16 +0000 (14:25 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 16 Aug 2013 21:25:16 +0000 (14:25 -0700)
commit73371c09f9f5a1a8565b2b9bd3f4c49197fc595c
tree25e80f2840dfe639cdb39c3850e480d835fae63a
parent36e2140da39be6cb983ea0f21fa8d886643a00f4
netdev-linux: Fix self-deadlocks in traffic control code.

htb_parse_qdisc_details__(), which is called with the netdev mutex, called
netdev_get_mtu(), which tried to reacquire the mutex and thus deadlocked.
This commit fixes the problem and similar problems in
htb_parse_class_details__() and hfsc_parse_qdisc_details__().

Bug #19180.
Reported-by: Dhaval Badiani <dbadiani@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
lib/netdev-linux.c